mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
Refactor global code in configuration module
This commit is contained in:
1 parent
d9bebe67f5
commit
f4fe85ae28
3 files changed
+60
-34
No files matched your search
@@ -6,8 +6,6 @@ from passlib.exc import PasswordSizeError
|
||||
import cfg
|
||||
from model import User
|
||||
|
||||
cfg.session_key = '_username'
|
||||
|
||||
|
||||
def add_user(username, passphrase, name='', email='', expert=False):
|
||||
"""Add a new user with specified username and passphrase.
|
||||
|
||||
Reference in new issue
Block a user