account password change now returns 400

This commit is contained in:
Johannes Zellner
2019-05-13 23:42:06 +02:00
parent b67d5eec3d
commit 27c7c0438f
+1 -1
View File
@@ -131,7 +131,7 @@ angular.module('Application').controller('AccountController', ['$scope', 'Client
$scope.passwordchange.busy = false;
if (error) {
if (error.statusCode === 403) {
if (error.statusCode === 400 && error.message === 'Password incorrect') {
$scope.passwordchange.error.password = true;
$scope.passwordchange.password = '';
$('#inputPasswordChangePassword').focus();