We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64948c6 commit f03c12fCopy full SHA for f03c12f
assets/reader-activation/auth.js
@@ -424,7 +424,13 @@ window.newspackRAS.push( function ( readerActivation ) {
424
if ( otpHash && [ 'register', 'link' ].includes( action ) ) {
425
setFormAction( 'otp' );
426
}
427
- form.endLoginFlow( message, res.status, data, redirect );
+ let status = res.status;
428
+ /** If action is link, suppress message and status so the OTP handles it. */
429
+ if ( action === 'link' ) {
430
+ status = null;
431
+ message = null;
432
+ }
433
+ form.endLoginFlow( message, status, data, redirect );
434
} )
435
.catch( () => {
436
form.endLoginFlow();
0 commit comments