[CST-6152] allow password change only if a challenge is resolved.

This commit is contained in:
eskander
2022-07-01 14:04:23 +02:00
parent c532d410a2
commit aafa2c7d25
18 changed files with 321 additions and 1 deletions

View File

@@ -207,4 +207,14 @@ public class AuthenticationServiceImpl implements AuthenticationService {
return null;
}
@Override
public boolean canChangePassword(Context context, String challenge) {
for (AuthenticationMethod method : getAuthenticationMethodStack()) {
if (method.canChangePassword(context, challenge)) {
return true;
}
}
return false;
}
}