mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Fixed 2fa code resend button reverting to retry on success
refs [ENG-1642](https://linear.app/tryghost/issue/ENG-1642/when-submitting-the-code-the-login-button-changes-to-retry-before)
This commit is contained in:
parent
db107bd789
commit
16b0ef352f
1 changed files with 1 additions and 0 deletions
|
@ -53,6 +53,7 @@ export default class SigninVerifyController extends Controller {
|
|||
*verifyTokenTask() {
|
||||
try {
|
||||
yield this.session.authenticate('authenticator:cookie', {token: this.verifyData.token});
|
||||
return true;
|
||||
} catch (error) {
|
||||
if (error && error.payload && error.payload.errors) {
|
||||
this.flowErrors = error.payload.errors[0].message;
|
||||
|
|
Loading…
Add table
Reference in a new issue