mirror of
https://github.com/jfmcbrayer/brutaldon
synced 2024-12-25 06:50:54 +01:00
Fix permissions on oauth login.
Why is it not the same as password login?
This commit is contained in:
parent
c682bdd117
commit
0b69a12615
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user