You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Cannot set Auth Source to Local via API
To Reproduce
Steps to reproduce the behavior:
Create an Authentication Source (say a SMTP auth source with id 2)
Change user to the new auth source in admin panel
Change auth source to local (id 0) with API http --print HhB PATCH http://${GOGS_HOST}/api/v1/admin/users/$GOGS_USER "Authorization: token ${GOGS_TOKEN}" source_id:=0 login_name=$GOGS_USER email=$GOGS_USER@mail.com password=$GOGS_USER
Server response 200 but auth source not changed (per admin panel and login error message)
Expected behavior
The auth source should be set to Local after the 200 response
Screenshots
If applicable, add screenshots to help explain your problem.
Describe the bug
Cannot set Auth Source to Local via API
To Reproduce
Steps to reproduce the behavior:
http --print HhB PATCH http://${GOGS_HOST}/api/v1/admin/users/$GOGS_USER "Authorization: token ${GOGS_TOKEN}" source_id:=0 login_name=$GOGS_USER email=$GOGS_USER@mail.com password=$GOGS_USER
Expected behavior
The auth source should be set to Local after the 200 response
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
[ ]
with[x]
):no external auth source
log/gogs.log
):The text was updated successfully, but these errors were encountered: