From 38779463c84a097741ac7c9af20a9160f9aeaa23 Mon Sep 17 00:00:00 2001 From: brantje Date: Mon, 17 Apr 2017 12:50:47 +0200 Subject: [PATCH] Show notification if passwords do not match on creating credential. Fixes #273 --- js/app/controllers/edit_credential.js | 5 +++++ tests/db/{DatabaseHelperTest.php => DatabaseHelper test.php} | 0 2 files changed, 5 insertions(+) rename tests/db/{DatabaseHelperTest.php => DatabaseHelper test.php} (100%) diff --git a/js/app/controllers/edit_credential.js b/js/app/controllers/edit_credential.js index f084b24e..40820336 100644 --- a/js/app/controllers/edit_credential.js +++ b/js/app/controllers/edit_credential.js @@ -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; diff --git a/tests/db/DatabaseHelperTest.php b/tests/db/DatabaseHelper test.php similarity index 100% rename from tests/db/DatabaseHelperTest.php rename to tests/db/DatabaseHelper test.php