Fixup email edit form with password changes

This commit is contained in:
Johannes Zellner
2016-01-21 14:34:36 +01:00
parent b82e5fd8c6
commit 06c2ba9fa9
2 changed files with 6 additions and 7 deletions

View File

@@ -91,6 +91,7 @@ angular.module('Application').controller('AccountController', ['$scope', '$locat
if (error.statusCode === 403) {
$scope.emailchange.error.password = true;
$scope.emailchange.password = '';
$scope.emailchange_form.password.$setPristine();
$('#inputEmailChangePassword').focus();
} else {
console.error('Unable to change email.', error);