0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-01-05 14:10:29 -05:00
forgejo/models/user
Gusted 7f8f9b878f
fix: Revert "allow synchronizing user status from OAuth2 login providers (#31572)"
This commit has a fundamental flaw, in order to syncronize if external
users are still active the commit checks if the refresh token is
accepted by the OAuth provider, if that is not the case it sees that as
the user is disabled and sets the is active field to `false` to signal
that. Because it might be possible (this commit makes this a highly
likelyhood) that the OAuth provider still recognizes this user the
commit introduces code to allow users to re-active themselves via the
oauth flow if they were disabled because of this. However this code
makes no distinction in why the user was disabled and always re-actives
the user.

Thus the reactivation via the OAuth flow allows users to bypass the
manually activation setting (`[service].REGISTER_MANUAL_CONFIRM`) or if
the admin for other reasons disabled the user.

This reverts commit 21fdd28f08.
2024-12-12 05:59:06 +01:00
..
fixtures
avatar.go
badge.go
block.go
block_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
email_address.go fix: Allow Organisations to remove the Email Address (#5517) 2024-11-20 12:31:34 +00:00
email_address_test.go fix: Allow Organisations to remove the Email Address (#5517) 2024-11-20 12:31:34 +00:00
error.go
external_login_user.go fix: Revert "allow synchronizing user status from OAuth2 login providers (#31572)" 2024-12-12 05:59:06 +01:00
federated_user.go initial 2024-05-16 08:15:43 +02:00
federated_user_test.go initial 2024-05-16 08:15:43 +02:00
follow.go
follow_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
list.go
main_test.go
must_change_password.go
openid.go
openid_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
redirect.go
redirect_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
search.go Add support for searching users by email (#30908) 2024-10-06 08:10:22 +02:00
setting.go
setting_keys.go Add codespell support and fix a good number of typos with its help (#3270) 2024-05-09 13:49:37 +00:00
setting_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
user.go Add - as reserved user 2024-12-09 18:45:05 +01:00
user_repository.go initial 2024-05-16 08:15:43 +02:00
user_system.go activitypub: Implement an instance-wide actor 2024-08-05 10:50:26 +02:00
user_test.go Fix GetInactiveUsers (#32540) 2024-11-24 15:42:36 +00:00
user_update.go