Fix in sessions, datetime, etc
This commit is contained in:
parent
63e091221e
commit
dff9269695
13 changed files with 2831 additions and 646 deletions
|
|
@ -9,7 +9,7 @@ from paramecio.citoplasma.sessions import get_session, generate_session
|
|||
from bottle import get,post,response,request
|
||||
from settings import config
|
||||
from settings import config_admin
|
||||
from paramecio.citoplasma.adminutils import get_menu, get_language, make_admin_url, check_login
|
||||
from paramecio.citoplasma.adminutils import get_menu, get_language, make_admin_url, check_login, login_model
|
||||
from paramecio.citoplasma.httputils import GetPostFiles
|
||||
from paramecio.cromosoma.formsutils import show_form, pass_values_to_form, set_extra_forms_user
|
||||
from paramecio.cromosoma.coreforms import PasswordForm
|
||||
|
|
@ -251,6 +251,9 @@ def home(module='', submodule='', t=t):
|
|||
@app.post('/'+config.admin_folder+'/login')
|
||||
def login():
|
||||
|
||||
return login_model(UserAdmin)
|
||||
|
||||
"""
|
||||
connection=WebModel.connection()
|
||||
|
||||
user_admin=UserAdmin(connection)
|
||||
|
|
@ -357,7 +360,7 @@ def login():
|
|||
connection.close()
|
||||
|
||||
return {'error': 1, 'csrf_token': s['csrf_token']}
|
||||
|
||||
"""
|
||||
|
||||
@app.post('/'+config.admin_folder+'/register')
|
||||
def register():
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load diff
|
Before Width: | Height: | Size: 348 KiB After Width: | Height: | Size: 434 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue