Browse Source

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.

jalbr74 6 years ago
parent
commit
a29f62c0ca
1 changed files with 7 additions and 0 deletions
  1. 7 0
      client/src/modules/helpdesk/verifications-dialog.controller.ts

+ 7 - 0
client/src/modules/helpdesk/verifications-dialog.controller.ts

@@ -96,6 +96,13 @@ export default class VerificationsDialogController {
                     this.status = STATUS_SELECT;
                     this.status = STATUS_SELECT;
                     this.determineAvailableVerificationMethods();
                     this.determineAvailableVerificationMethods();
                 }
                 }
+            })
+            .catch((reason: any) => {
+                alert(reason);
+
+                this.status = STATUS_NONE;
+                this.verificationStatus = STATUS_NONE;
+                this.IasDialogService.close();
             });
             });
     }
     }