Fix in app

This commit is contained in:
absurdo 2023-11-26 20:40:18 +01:00
parent 3a38dd8952
commit 12ea2a085a
2 changed files with 69 additions and 2 deletions

View file

@ -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():