mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2025-06-29 21:51:08 +02:00
Don't hardcode OAuth2 parameters
This commit is contained in:
@ -178,7 +178,7 @@ class AccessToken(models.Model):
|
||||
Extract information about the Note Kfet API by using the current
|
||||
access token.
|
||||
"""
|
||||
data = requests.get('https://note-dev.crans.org/api/me/',
|
||||
data = requests.get(f'{settings.NOTE_KFET_URL}/api/me/',
|
||||
headers=self.auth_header()).json()
|
||||
username = data['username']
|
||||
email = data['email']
|
||||
|
Reference in New Issue
Block a user