mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
users: Fix marking first boot step as done
This commit is contained in:
2 files changed
+3
-7
No files matched your search
@@ -27,6 +27,7 @@ from django.utils.translation import ugettext as _, ugettext_lazy
|
||||
|
||||
from plinth import actions
|
||||
from plinth.errors import ActionError
|
||||
from plinth.modules import first_boot
|
||||
from plinth.modules.security import set_restricted_access
|
||||
|
||||
# Usernames used by optional services (that might not be installed yet).
|
||||
@@ -256,6 +257,8 @@ class FirstBootForm(ValidNewUsernameCheckMixin, auth.forms.UserCreationForm):
|
||||
"""Create and log the user in."""
|
||||
user = super().save(commit=commit)
|
||||
if commit:
|
||||
first_boot.mark_step_done('users_firstboot')
|
||||
|
||||
try:
|
||||
actions.superuser_run(
|
||||
'ldap',
|
||||
|
||||
Reference in new issue
Block a user