mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
Validation adjustments.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user