Skip to content
Snippets Groups Projects
Commit 3381b950 authored by srosse's avatar srosse
Browse files

OO-3773: update OLAT authentication if the user keep the same password

parent d6706455
No related branches found
No related tags found
No related merge requests found
...@@ -1584,6 +1584,9 @@ public class BaseSecurityManager implements BaseSecurity, UserDataDeletable { ...@@ -1584,6 +1584,9 @@ public class BaseSecurityManager implements BaseSecurity, UserDataDeletable {
String newCredentials = Encoder.encrypt(password, currentSalt, algorithm); String newCredentials = Encoder.encrypt(password, currentSalt, algorithm);
if(newCredentials.equals(authentication.getCredential())) { if(newCredentials.equals(authentication.getCredential())) {
//same credentials //same credentials
if(BaseSecurityModule.getDefaultAuthProviderIdentifier().equals(authentication.getProvider())) {
authentication = updateAuthentication(authentication);
}
return authentication; return authentication;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment