Skip to content

Commit a29f62c

Browse files
committed
Fixed a problem where token verification hangs when the user doesn't have an email account or SMS number to receive the token data. This fix bubbles the error message from the server up to the user.
1 parent f354e2b commit a29f62c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

client/src/modules/helpdesk/verifications-dialog.controller.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,13 @@ export default class VerificationsDialogController {
9696
this.status = STATUS_SELECT;
9797
this.determineAvailableVerificationMethods();
9898
}
99+
})
100+
.catch((reason: any) => {
101+
alert(reason);
102+
103+
this.status = STATUS_NONE;
104+
this.verificationStatus = STATUS_NONE;
105+
this.IasDialogService.close();
99106
});
100107
}
101108

0 commit comments

Comments
 (0)