password confirmation on registration, closes #68

This commit is contained in:
Mo Bitar
2017-03-01 17:07:18 -06:00
parent 3b69a7d211
commit 052c6a9cde

View File

@@ -98,6 +98,11 @@ class AccountMenu {
}
$scope.submitRegistrationForm = function() {
var confirmation = prompt("Please confirm your password. Note that because your notes are encrypted using your password, Standard Notes does not have a password reset option. You cannot forget your password.")
if(confirmation !== $scope.formData.user_password) {
alert("The two passwords you entered do not match. Please try again.");
return;
}
$scope.formData.status = "Generating Account Keys...";
$timeout(function(){