Show notification if passwords do not match on creating credential. Fixes #273

This commit is contained in:
brantje 2017-04-17 12:50:47 +02:00
parent 3ccb84a600
commit 38779463c8
No known key found for this signature in database
GPG key ID: 5FF1D117F918687F
2 changed files with 5 additions and 0 deletions

View file

@ -300,6 +300,11 @@
}
if ($scope.storedCredential.password !== storedCredential.password_repeat){
NotificationService.showNotification($translate.instant('password.do.not.match'), 5000);
return;
}
//@TODO validation
//@TODO When credential is expired and has renew interval set, calc new expire time.
delete $scope.storedCredential.password_repeat;