Fix error reporting on password change

This commit is contained in:
Johannes Zellner
2019-10-29 12:39:39 +01:00
parent c42292d546
commit 9039be8e39
+1 -1
View File
@@ -131,7 +131,7 @@ angular.module('Application').controller('AccountController', ['$scope', 'Client
$scope.passwordchange.busy = false;
if (error) {
if (error.statusCode === 400 && error.message === 'Password incorrect') {
if (error.statusCode === 412) {
$scope.passwordchange.error.password = true;
$scope.passwordchange.password = '';
$('#inputPasswordChangePassword').focus();