Commit dd8ddbc0 authored by RyanHerb's avatar RyanHerb
Browse files

default.py init_db set web2py admin password

in the same vein as setting the admin password for users, the web2py
admin password is not easy to change once web2py itself has been
installed. Therefore defaulting it to the same as the vidjil admin
passwords seems like a good option
parent 07cb8b48
......@@ -9,6 +9,7 @@
## - call exposes all registered services (none by default)
#########################################################################
from gluon.main import save_password
import defs
import vidjil_utils
import StringIO
......@@ -94,6 +95,9 @@ def init_db_helper(force=False, admin_email="plop@plop.com", admin_password="123
last_name = 'Administrator'
)
# set web2py administration interface password to the same as vidjil admin password
save_password(admin_password, 443)
## création des groupes de base
id_admin_group=db.auth_group.insert(role='admin')
id_sa_group=db.auth_group.insert(role='user_1')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment