Merge pull request #2608 from mposolda/master
KEYCLOAK-2811 FederationProvidersIntegrationTest.testReadOnly failing…
This commit is contained in:
commit
59535e4c43
1 changed files with 4 additions and 0 deletions
|
@ -117,6 +117,10 @@ public class MSADUserAccountControlMapper extends AbstractLDAPFederationMapper {
|
||||||
|
|
||||||
|
|
||||||
protected ModelException processFailedPasswordUpdateException(ModelException e) {
|
protected ModelException processFailedPasswordUpdateException(ModelException e) {
|
||||||
|
if (e.getCause() == null || e.getCause().getMessage() == null) {
|
||||||
|
return e;
|
||||||
|
}
|
||||||
|
|
||||||
String exceptionMessage = e.getCause().getMessage().replace('\n', ' ');
|
String exceptionMessage = e.getCause().getMessage().replace('\n', ' ');
|
||||||
Matcher m = AUTH_INVALID_NEW_PASSWORD.matcher(exceptionMessage);
|
Matcher m = AUTH_INVALID_NEW_PASSWORD.matcher(exceptionMessage);
|
||||||
if (m.matches()) {
|
if (m.matches()) {
|
||||||
|
|
Loading…
Reference in a new issue