diff --git a/paramecio/citoplasma/check_i18n.py b/paramecio/citoplasma/check_i18n.py index 70de424..96ccba4 100644 --- a/paramecio/citoplasma/check_i18n.py +++ b/paramecio/citoplasma/check_i18n.py @@ -46,7 +46,7 @@ def start(): lang_p=re.compile("I18n\.lang\('("+module_base+"?)',\s+'(.*?)',\s+'(.*?)'\)") #lang_t=re.compile("\${lang\('("+module_base+"?)',\s+'(.*?)',\s+'(.*?)'\)\}") - lang_t=re.compile("\${lang\('("+module_base+"?)',\s+'(.*?)',\s+'(.*?)'\)") + lang_t=re.compile("lang\('("+module_base+"?)',\s+'(.*?)',\s+'(.*?)'\)") if not os.path.isdir(path): diff --git a/paramecio/modules/admin/index.py b/paramecio/modules/admin/index.py index 08a7cc3..24f8fd3 100644 --- a/paramecio/modules/admin/index.py +++ b/paramecio/modules/admin/index.py @@ -273,8 +273,6 @@ def login(): if user_admin.fields['password'].verify(password, arr_user['password']): - generate_session() - s=get_session() s['id']=arr_user['id'] @@ -305,7 +303,7 @@ def login(): if user_admin.update({'token_login': random_text}): - response.set_cookie('remember_login', random_text, path="/", expires=timestamp, secret=key_encrypt) + response.set_cookie('remember_login', random_text, path=config.session_opts['session.path'], expires=timestamp, secret=key_encrypt) #else: #print(user_admin.query_error) s.save()