Skip to content

Commit

Permalink
fix: denied permission for non-admin user
Browse files Browse the repository at this point in the history
  • Loading branch information
charlie-captain committed Jun 1, 2023
1 parent 354ce00 commit f7196ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def get_token():
global cookie
global token
global headers
url = f'{base_url}/webapi/auth.cgi?api=SYNO.API.Auth&session=Foto&version=7&method=login&account={username}&passwd={pwd}&format=cookie&enable_syno_token=yes'
url = f'{base_url}/webapi/auth.cgi?api=SYNO.API.Auth&version=3&method=login&account={username}&passwd={pwd}&format=cookie&enable_syno_token=yes'
response = requests.get(url)
try:
data = json.loads(response.content)
Expand Down

0 comments on commit f7196ec

Please sign in to comment.