mirror of
https://github.com/nextcloud/passman.git
synced 2025-02-26 00:14:44 +08:00
Show notification if passwords do not match on creating credential. Fixes #273
This commit is contained in:
parent
3ccb84a600
commit
38779463c8
2 changed files with 5 additions and 0 deletions
|
@ -300,6 +300,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if ($scope.storedCredential.password !== storedCredential.password_repeat){
|
||||||
|
NotificationService.showNotification($translate.instant('password.do.not.match'), 5000);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
//@TODO validation
|
//@TODO validation
|
||||||
//@TODO When credential is expired and has renew interval set, calc new expire time.
|
//@TODO When credential is expired and has renew interval set, calc new expire time.
|
||||||
delete $scope.storedCredential.password_repeat;
|
delete $scope.storedCredential.password_repeat;
|
||||||
|
|
Loading…
Reference in a new issue