This commit is contained in:
Rasmus Kaj 2025-02-21 00:21:22 +01:00
parent d2da5894f1
commit 04ed568c98

View file

@ -7,7 +7,7 @@ logging.basicConfig(level=logging.INFO)
fingerpass = getenv('FINGER_PW') fingerpass = getenv('FINGER_PW')
gitauth = (getenv('GIT_USER', getenv('GIT_PW')) gitauth = (getenv('GIT_USER'), getenv('GIT_PW'))
fingerurl = f'https://finger.stacken.kth.se/services/git/all' fingerurl = f'https://finger.stacken.kth.se/services/git/all'
@ -21,7 +21,7 @@ for (user, passwd) in response.json().items():
"email": f"{user}@stacken.kth.se", "email": f"{user}@stacken.kth.se",
"password": passwd, "password": passwd,
}, },
auth = ('fingerpoller', gitpass) auth = gitauth
) )
if response.status_code == 422: if response.status_code == 422:
patch(f'https://git.stacken.kth.se/api/v1/admin/users/{user}', patch(f'https://git.stacken.kth.se/api/v1/admin/users/{user}',