mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +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:
|
||||
messages.error(self.request,
|
||||
_('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()
|
||||
|
||||
return user
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user