Fix in app
This commit is contained in:
parent
3a38dd8952
commit
12ea2a085a
2 changed files with 69 additions and 2 deletions
|
|
@ -115,6 +115,7 @@ for app_load in config_admin:
|
|||
|
||||
@admin_app.route('/admin/')
|
||||
def admin():
|
||||
|
||||
return t.load_template('home.phtml', title=I18n.lang('admin', 'admin', 'Admin'))
|
||||
|
||||
"""
|
||||
|
|
@ -394,6 +395,17 @@ def auth_check():
|
|||
|
||||
return {'error': error, 'you_cannot_login': you_cannot_login}
|
||||
|
||||
@admin_app.route('/admin/change_theme/')
|
||||
def change_theme():
|
||||
|
||||
theme_selected=str(request.args.get('theme', '0'))
|
||||
print('Theme '+theme_selected)
|
||||
session['theme']=theme_selected
|
||||
|
||||
error=0
|
||||
|
||||
return {'error': error}
|
||||
|
||||
"""
|
||||
@admin_app.route('/admin/recovery_password/')
|
||||
def recovery_password():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue