mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-29 10:10:19 +00:00
first_boot: Switch to new ldap action.
This commit is contained in:
parent
8c155bfafb
commit
7a464d6f5f
@ -67,8 +67,8 @@ than 63 characters in length.'),
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
actions.superuser_run(
|
actions.superuser_run(
|
||||||
'create-ldap-user',
|
'ldap',
|
||||||
[user.get_username()],
|
['create-user', user.get_username()],
|
||||||
input=self.cleaned_data['password'].encode())
|
input=self.cleaned_data['password'].encode())
|
||||||
except ActionError:
|
except ActionError:
|
||||||
messages.error(self.request,
|
messages.error(self.request,
|
||||||
@ -76,8 +76,8 @@ than 63 characters in length.'),
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
actions.superuser_run(
|
actions.superuser_run(
|
||||||
'add-ldap-user-to-group',
|
'ldap',
|
||||||
[user.get_username(), 'admin'])
|
['add-user-to-group', user.get_username(), 'admin'])
|
||||||
except ActionError:
|
except ActionError:
|
||||||
messages.error(self.request,
|
messages.error(self.request,
|
||||||
_('Failed to add new user to admin group.'))
|
_('Failed to add new user to admin group.'))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user