From 9039be8e39638547581fa3ea2077f15e75b77c00 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Tue, 29 Oct 2019 12:39:39 +0100 Subject: [PATCH] Fix error reporting on password change --- src/views/account.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/account.js b/src/views/account.js index 79e9395e8..93dcc49fa 100644 --- a/src/views/account.js +++ b/src/views/account.js @@ -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();