forked from ticketfrei/ticketfrei
appropriate success message
This commit is contained in:
parent
f1d7215eba
commit
fd8b29c55f
|
@ -246,9 +246,7 @@ def login_mastodon(user):
|
||||||
try:
|
try:
|
||||||
access_token = m.log_in(masto_email, masto_pass)
|
access_token = m.log_in(masto_email, masto_pass)
|
||||||
user.save_masto_token(access_token, instance_url)
|
user.save_masto_token(access_token, instance_url)
|
||||||
return dict(
|
city_page(user.get_city(), info='Thanks for supporting decentralized social networks!')
|
||||||
info='Thanks for supporting decentralized social networks!'
|
|
||||||
)
|
|
||||||
except Exception:
|
except Exception:
|
||||||
logger.error('Login to Mastodon failed.', exc_info=True)
|
logger.error('Login to Mastodon failed.', exc_info=True)
|
||||||
return dict(error='Login to Mastodon failed.')
|
return dict(error='Login to Mastodon failed.')
|
||||||
|
|
Loading…
Reference in a new issue