Don't show flash message when user logs in.

That just seems more annoying to me, somehow..
This commit is contained in:
Lance Edgar 2015-08-08 13:58:16 -05:00
parent d756b7885a
commit d698bef608

View file

@ -36,8 +36,6 @@ import formencode
from pyramid_simpleform import Form from pyramid_simpleform import Form
from ..forms.simpleform import FormRenderer from ..forms.simpleform import FormRenderer
from rattail.time import localtime
from ..db import Session from ..db import Session
from rattail.db.auth import authenticate_user, set_user_password from rattail.db.auth import authenticate_user, set_user_password
@ -82,8 +80,6 @@ def login(request):
form.data['username'], form.data['username'],
form.data['password']) form.data['password'])
if user: if user:
request.session.flash("{0} logged in at {1}".format(
user, localtime(request.rattail_config).strftime('%I:%M %p')))
headers = remember(request, user.uuid) headers = remember(request, user.uuid)
# Treat URL from session as referrer, if available. # Treat URL from session as referrer, if available.
referrer = request.session.pop('next_url', referrer) referrer = request.session.pop('next_url', referrer)