mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
first_boot: Also create LDAP user for initial user.
This commit is contained in:
parent
3a3009c111
commit
bc8523d9a3
@ -70,6 +70,15 @@ than 63 characters in length.'),
|
|||||||
except ActionError:
|
except ActionError:
|
||||||
messages.error(self.request,
|
messages.error(self.request,
|
||||||
_('Creating POSIX system user failed.'))
|
_('Creating POSIX system user failed.'))
|
||||||
|
|
||||||
|
try:
|
||||||
|
actions.superuser_run(
|
||||||
|
'create-ldap-user',
|
||||||
|
[user.get_username(), self.cleaned_data['password']])
|
||||||
|
except ActionError:
|
||||||
|
messages.error(self.request,
|
||||||
|
_('Creating LDAP user failed.'))
|
||||||
|
|
||||||
self.login_user()
|
self.login_user()
|
||||||
|
|
||||||
return user
|
return user
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user