KEYCLOAK-10944 Fix 500 Error Code on Update Password

This commit is contained in:
farmersmurf 2019-08-06 12:29:21 +01:00 committed by Marek Posolda
parent 53b28aaa7e
commit b443c8186d

View file

@ -208,7 +208,7 @@ public class AccountFormService extends AbstractSecuredLocalService {
if (forwardedError != null) {
try {
FormMessage errorMessage = JsonSerialization.readValue(forwardedError, FormMessage.class);
account.setError(Response.Status.INTERNAL_SERVER_ERROR, errorMessage.getMessage(), errorMessage.getParameters());
account.setError(Response.Status.ACCEPTED, errorMessage.getMessage(), errorMessage.getParameters());
authSession.removeAuthNote(ACCOUNT_MGMT_FORWARDED_ERROR_NOTE);
} catch (IOException ioe) {
throw new RuntimeException(ioe);