fix login and registration.
This commit is contained in:
parent
78331212e6
commit
d280130b29
|
@ -11,7 +11,10 @@ from mastodon import Mastodon
|
||||||
|
|
||||||
|
|
||||||
def url(route):
|
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('/')
|
@get('/')
|
||||||
|
@ -64,7 +67,6 @@ def login_post():
|
||||||
return redirect('/settings')
|
return redirect('/settings')
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
pass
|
pass
|
||||||
finally:
|
|
||||||
return dict(error='Authentication failed.')
|
return dict(error='Authentication failed.')
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue