fix login and registration.

multi-deployment
Thomas L 2018-03-29 21:58:55 +02:00
parent 78331212e6
commit d280130b29
1 changed files with 5 additions and 3 deletions

View File

@ -11,7 +11,10 @@ from mastodon import Mastodon
def url(route):
'%s://%s/%s' % (request.urlparts.scheme, request.urlparts.netloc, route)
return '%s://%s/%s' % (
request.urlparts.scheme,
request.urlparts.netloc,
route)
@get('/')
@ -64,8 +67,7 @@ def login_post():
return redirect('/settings')
except AttributeError:
pass
finally:
return dict(error='Authentication failed.')
return dict(error='Authentication failed.')
@get('/settings')