Commit f6bfdf42 authored by Sven Lukrafka's avatar Sven Lukrafka

Merge branch 'develop' into 'master'

Develop

See merge request crust/customer!15
parents 63a27a42 eaaeac8a
......@@ -8,6 +8,8 @@
__pycache__
*.log
*.prefs
.pyc
*.pyc
*.pydevproject
*.project
*.bin/
......
......@@ -53,6 +53,9 @@ class Custom_Selfregrequest(AddRequest):
self.ldap_entry = self.entry_helper.add_value(self.ldap_entry, 'cn', self.given_name[0] +' '+ self.sn[0])
# Set user login name
self.ldap_entry = self.entry_helper.add_value(self.ldap_entry, getattr(settings, 'LUI_OIDC_USER_LOGIN_NAME'), [self.generated_login+USER_LOGIN_NAME_APPENDIX])
# Add helping login attribute
if hasattr(settings, 'LUI_PRIVACYIDEA_LOGIN_NAME'):
self.ldap_entry = self.entry_helper.add_value(self.ldap_entry, getattr(settings, 'LUI_PRIVACYIDEA_LOGIN_NAME'),self.generated_login)
# Set additional flags
for flag, value in flags_dict.items():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment