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

OO-3887: use always standard password generator (patch A. Parschalk)

parent ba001039
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,6 @@ import org.apache.logging.log4j.Logger; ...@@ -40,7 +40,6 @@ import org.apache.logging.log4j.Logger;
import org.olat.basesecurity.Authentication; import org.olat.basesecurity.Authentication;
import org.olat.basesecurity.BaseSecurity; import org.olat.basesecurity.BaseSecurity;
import org.olat.core.commons.persistence.DB; import org.olat.core.commons.persistence.DB;
import org.olat.core.helpers.Settings;
import org.olat.core.id.Identity; import org.olat.core.id.Identity;
import org.olat.core.logging.Tracing; import org.olat.core.logging.Tracing;
import org.olat.core.util.Encoder; import org.olat.core.util.Encoder;
...@@ -548,9 +547,7 @@ public class AdobeConnectManagerImpl implements AdobeConnectManager, DeletableGr ...@@ -548,9 +547,7 @@ public class AdobeConnectManagerImpl implements AdobeConnectManager, DeletableGr
String creds = null; String creds = null;
if(aUser == null) { if(aUser == null) {
if(compatible) { if( compatible || getAdapter().isManagedPassword()) {
creds = Encoder.md5hash(identity.getName() + "@" + Settings.getApplicationName());
} else if(getAdapter().isManagedPassword()) {
creds = UUID.randomUUID().toString().replace("-", ""); creds = UUID.randomUUID().toString().replace("-", "");
if(creds.length() > 32) { if(creds.length() > 32) {
creds = creds.substring(0, 32); creds = creds.substring(0, 32);
......
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