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