User created by admin goes to 403 when password changed #5622

Closed
opened 2025-11-02 06:31:13 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @micheelengronne on GitHub (Jun 24, 2020).

  • Gitea version (or commit ref): 1.12.1
  • Git version: not relevant
  • Operating system:
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Given an admin creates a user and force the user to change its password
When the user log in, is automatically redirected to the password change form and change its password
Then the page is redirected to /admin/users/USERID so 403 for the user.

Originally created by @micheelengronne on GitHub (Jun 24, 2020). - Gitea version (or commit ref): 1.12.1 - Git version: not relevant - Operating system: - Database (use `[x]`): - [x] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [X] No - [ ] Not relevant - Log gist: Given an admin creates a user and force the user to change its password When the user log in, is automatically redirected to the password change form and change its password Then the page is redirected to `/admin/users/USERID` so 403 for the user.
Author
Owner

@micheelengronne commented on GitHub (Jun 24, 2020):

If I do other stuff between the user creation and the logout/login/password update that works.

@micheelengronne commented on GitHub (Jun 24, 2020): If I do other stuff between the user creation and the `logout/login/password update` that works.
Author
Owner

@micheelengronne commented on GitHub (Jun 26, 2020):

I think these commits cause the bug somehow:

a00974c3b8

017f314b5a (diff-674a60493626b4320fa19856b43c9472)

@micheelengronne commented on GitHub (Jun 26, 2020): I think these commits cause the bug somehow: https://github.com/go-gitea/gitea/commit/a00974c3b8a589677c508c522d3aab8b57b839f3 https://github.com/go-gitea/gitea/commit/017f314b5a0f930b477efa1c2a5309f8cdd6d3c3#diff-674a60493626b4320fa19856b43c9472
Author
Owner

@stale[bot] commented on GitHub (Aug 30, 2020):

This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.

@stale[bot] commented on GitHub (Aug 30, 2020): This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.
Author
Owner

@zeripath commented on GitHub (Aug 30, 2020):

This appears to work on 1.13 - is this still a problem?

@zeripath commented on GitHub (Aug 30, 2020): This appears to work on 1.13 - is this still a problem?
Author
Owner

@lafriks commented on GitHub (Aug 31, 2020):

marking as fixed, please repoen if it is still problem in latest development version

@lafriks commented on GitHub (Aug 31, 2020): marking as fixed, please repoen if it is still problem in latest development version
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5622