2
0
mirror of https://github.com/jfmcbrayer/brutaldon synced 2024-12-24 22:40:45 +01:00

Fix permissions on oauth login.

Why is it not the same as password login?
This commit is contained in:
Jason McBrayer 2018-07-18 14:56:52 -04:00
parent c682bdd117
commit 0b69a12615

View File

@ -170,7 +170,7 @@ def oauth_callback(request):
redirect_uri = request.build_absolute_uri(reverse('oauth_callback'))
access_token = mastodon.log_in(code=code,
redirect_uri=redirect_uri,
scopes=['read', 'write', 'follow', 'push'])
scopes=['read', 'write', 'follow'])
request.session['access_token'] = access_token
user = mastodon.account_verify_credentials()
request.session['user'] = user