Commit a8928beb authored by Emily Jensen's avatar Emily Jensen

Error states

parent bef0d4f9
......@@ -3,8 +3,7 @@ import * as fromAccount from "../../account.reducer";
import { Store, select } from "@ngrx/store";
import {
Init,
VerifyAndLogin,
SetError
VerifyAndLogin
} from "./reset-password-verify.actions";
import { ActivatedRoute } from "@angular/router";
import { BACKUP_CODE_CHARS, BACKUP_CODE_LENGTH } from "../constants";
......@@ -51,9 +50,6 @@ export class ResetPasswordVerifyContainer implements OnInit {
) {
this.store.dispatch(new VerifyAndLogin(backupCode));
} else {
// We are not currently using the SetError Action
this.store.dispatch(new SetError("Invalid backup code"));
// This error is for qr codes that are read by the scanner, but are not from Passit.
// If it is a Passit code, but the wrong one, it will error in state.
this.badCodeError = "Invalid backup code.";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment