Skip to content

Commit

Permalink
do not remove the password clear from the authentication page until t…
Browse files Browse the repository at this point in the history
…he authentication has been attempted to avoid a spurious validation error showing.
  • Loading branch information
andponlin committed Dec 30, 2019
1 parent d63bad7 commit dbd3900
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ angular.module('haikudepotserver').controller(
$scope.amAuthenticating = true;
var nickname = $scope.authenticationDetails.nickname;
var passwordClear = $scope.authenticationDetails.passwordClear;
$scope.authenticationDetails.passwordClear = undefined;

authenticate(nickname, passwordClear)
.then(
Expand Down Expand Up @@ -230,6 +229,7 @@ angular.module('haikudepotserver').controller(
}
).finally(
function() {
$scope.authenticationDetails.passwordClear = undefined;
$scope.amAuthenticating = false;
}
);
Expand Down

0 comments on commit dbd3900

Please sign in to comment.