API Call /admin/users/{username} does not work without email. #6309

Closed
opened 2025-11-02 06:52:10 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @gabyx on GitHub (Nov 13, 2020).

Description

API Call https://try.gitea.io/api/swagger#/admin/adminEditUser
does not succeed with out email:

{
  "active": true,
  "email": "user@example.com"
}

Cannot provide a test, since I the admin user on https://try.gitea.io is not known (?)

Originally created by @gabyx on GitHub (Nov 13, 2020). - Gitea version 1.12.5 - Git version: 2.29.2 - Operating system: Linux Alpine Docker Image. - Database (use `[x]`): - [x] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes [https://try.gitea.io/api/swagger#/admin/adminEditUser](https://try.gitea.io/api/swagger#/admin/adminEditUser) - [ ] No ## Description API Call [https://try.gitea.io/api/swagger#/admin/adminEditUser](https://try.gitea.io/api/swagger#/admin/adminEditUser) does not succeed with out email: ``` { "active": true, "email": "user@example.com" } ``` Cannot provide a test, since I the admin user on https://try.gitea.io is not known (?)
GiteaMirror added the type/enhancementmodifies/api labels 2025-11-02 06:52:10 -06:00
Author
Owner

@6543 commented on GitHub (Nov 13, 2020):

@gabyx thanks for checking :)

@6543 commented on GitHub (Nov 13, 2020): @gabyx thanks for checking :)
Author
Owner

@gabyx commented on GitHub (Nov 13, 2020):

Testet it with the curl command from Swagger locally, and with
Gitea Python API https://github.com/dblueai/giteapy/blob/1.0.8/docs/EditUserOption.md
which says email is required too...

@gabyx commented on GitHub (Nov 13, 2020): Testet it with the curl command from Swagger locally, and with Gitea Python API [https://github.com/dblueai/giteapy/blob/1.0.8/docs/EditUserOption.md](https://github.com/dblueai/giteapy/blob/1.0.8/docs/EditUserOption.md) which says email is required too...
Author
Owner

@6543 commented on GitHub (Nov 14, 2020):

looks like it was intended in the past ... pull: #13562

@6543 commented on GitHub (Nov 14, 2020): looks like it was intended in the past ... pull: #13562
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#6309