0
Fork 0
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:
Michael Barrett 2024-10-10 15:05:37 +01:00 committed by Kevin Ansfield
parent db107bd789
commit 16b0ef352f

View file

@ -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;