mirror of
https://gitlab.com/brutaldon/brutaldon
synced 2025-01-31 00:24:49 +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'))
|
redirect_uri = request.build_absolute_uri(reverse('oauth_callback'))
|
||||||
access_token = mastodon.log_in(code=code,
|
access_token = mastodon.log_in(code=code,
|
||||||
redirect_uri=redirect_uri,
|
redirect_uri=redirect_uri,
|
||||||
scopes=['read', 'write', 'follow', 'push'])
|
scopes=['read', 'write', 'follow'])
|
||||||
request.session['access_token'] = access_token
|
request.session['access_token'] = access_token
|
||||||
user = mastodon.account_verify_credentials()
|
user = mastodon.account_verify_credentials()
|
||||||
request.session['user'] = user
|
request.session['user'] = user
|
||||||
|
Loading…
x
Reference in New Issue
Block a user