Create POSIX user during firstboot. Closes #31.

This commit is contained in:
James Valleroy authored and Sunil Mohan Adapa committed 2015-01-20 12:28:53 +05:30
1 parent 4581785519
commit 1a081bfab0
2 files changed
+42

No files matched your search

+4
View File
@@ -20,6 +20,7 @@ from django.contrib import auth, messages
from django.core import validators
from gettext import gettext as _
from plinth import actions
from plinth.modules.config import config
@@ -58,6 +59,9 @@ than 63 characters in length.'),
user.set_password(self.cleaned_data['password'])
if commit:
user.save()
actions.superuser_run(
'create-user',
[user.username, self.cleaned_data['password']])
self.login_user()
return user