1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

Validation adjustments.

This commit is contained in:
Kyle Spearrin
2016-09-22 13:03:28 -04:00
parent 3d7b32f359
commit eef4d6f48e
11 changed files with 30 additions and 18 deletions

View File

@@ -1,14 +1,14 @@
angular
.module('bit.accounts')
.controller('accountsLoginTwoFactorController', function ($scope, $state, loginService) {
.controller('accountsLoginTwoFactorController', function ($scope, $state, loginService, toastr) {
popupUtils.initListSectionItemListeners();
$('#code').focus();
$scope.loginPromise = null;
$scope.login = function (model) {
if (!model.code) {
toastr.error('Verification code is required.');
toastr.error('Verification code is required.', 'Errors have occurred');
return;
}