diff --git a/ref.tetalab.org.wsgi b/ref.tetalab.org.wsgi deleted file mode 100644 index 24533b6..0000000 --- a/ref.tetalab.org.wsgi +++ /dev/null @@ -1,3 +0,0 @@ -import sys -sys.path.insert(0, '/var/www/stock.tetalab.org') -from stock_tetalab import app as application diff --git a/stock.sql b/stock.sql index abca232..a221c7c 100644 --- a/stock.sql +++ b/stock.sql @@ -66,4 +66,4 @@ alter table stock_kit_compositions owner to tetastock; alter table stock_orders owner to tetastock; alter database tetastock owner to tetastock; -insert into stock_users (mail, password, name) values ('test', '$2b$08$OkfihuGRyLdpftBpGhnpeeeUhUTQS0oXvR2NFByC.65XCKKvPBWHS'); +insert into stock_users (mail, password, name) values ('test', '$2b$08$OkfihuGRyLdpftBpGhnpeeeUhUTQS0oXvR2NFByC.65XCKKvPBWHS', 'test'); diff --git a/templates/login.html b/templates/login.html index 73e57bd..2597ffa 100644 --- a/templates/login.html +++ b/templates/login.html @@ -1,5 +1,5 @@ {% extends "index.html" %} -{% block title %}Éditer un fournisseur{% endblock %} +{% block title %}Se connecter{% endblock %} {% block top_menu %} Authentification {% endblock %} diff --git a/tetastock.py b/tetastock.py index f9a308d..fc66edf 100755 --- a/tetastock.py +++ b/tetastock.py @@ -104,8 +104,8 @@ def sync_cookies(response, session): """ Sync cookies with session """ for key in session: response.set_cookie(key, value=str(session[key])) - if key != u'session': - print '[c]', key, session[key] + #~ if key != u'session': + #~ print '[c]', key, session[key] def sync_session(request, session): """ Sync session with cookies""" @@ -123,8 +123,8 @@ def sync_session(request, session): except ValueError: # Value is not an int, will be treated as string session[key] = str(request.cookies[key].encode('utf8')) - if key != u'session': - print '[s]', key, request.cookies[key] + #~ if key != u'session': + #~ print '[s]', key, request.cookies[key] def check_user(request, session): """ Check user credentials """ diff --git a/tetastock.tetalab.org.wsgi b/tetastock.tetalab.org.wsgi new file mode 100644 index 0000000..f9c8970 --- /dev/null +++ b/tetastock.tetalab.org.wsgi @@ -0,0 +1,3 @@ +import sys +sys.path.insert(0, '/var/www/tetastock.tetalab.org') +from tetastock import app as application