Merge branch 'RED-7539' into 'main'

RED-7539: changed error message when validating password causes an error

See merge request fforesight/tenant-user-management-service!65
This commit is contained in:
Ali Oezyetimoglu 2024-01-22 10:12:58 +01:00
commit 10a834e7f8

View File

@ -277,7 +277,7 @@ public class UserService {
try {
changeEmailClient.tokenManager().getAccessTokenString();
} catch (NotAuthorizedException e) {
throw new ResponseStatusException(HttpStatus.BAD_REQUEST);
throw new ResponseStatusException(HttpStatus.BAD_REQUEST, "Could not confirm credentials");
}
changeEmailClient.close();