Commit 027776d8 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Inhibit the authentification mechanism.

parent 42efbd09
......@@ -2,7 +2,7 @@
"""
@auth.requires_membership('track_publications')
#@auth.requires_membership('track_publications')
def index():
session.role = 'admin'
return LOAD('plugin_dbui', 'index', vars=request.vars)
......@@ -16,17 +16,17 @@ except:
#
# Authentification
#
try:
dbu = DAL(DB_USERS, migrate=False)
except:
raise HTTP(500, T("Can't access the users database !!!"))
auth = Auth(dbu, hmac_key=Auth.get_or_create_key())
auth.define_tables()
auth.settings.registration_requires_verification = False
auth.settings.registration_requires_approval = True
auth.settings.remember_me_form = False
auth.settings.reset_password_requires_verification = True
\ No newline at end of file
#try:
# dbu = DAL(DB_USERS, migrate=False)
#
#except:
# raise HTTP(500, T("Can't access the users database !!!"))
#
#
#auth = Auth(dbu, hmac_key=Auth.get_or_create_key())
#
#auth.define_tables()
#auth.settings.registration_requires_verification = False
#auth.settings.registration_requires_approval = True
#auth.settings.remember_me_form = False
#auth.settings.reset_password_requires_verification = True
\ No newline at end of file
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