mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
Validation adjustments.
This commit is contained in:
@@ -8,7 +8,11 @@
|
||||
$scope.submitPromise = null;
|
||||
$scope.submit = function (model) {
|
||||
if (!model.email) {
|
||||
toastr.error('Email is required.');
|
||||
toastr.error('Email address is required.', 'Errors have occurred');
|
||||
return;
|
||||
}
|
||||
if (model.email.indexOf('@') === -1) {
|
||||
toastr.error('Invalid email address.', 'Errors have occurred');
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user