0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-02-16 02:58:33 -05:00
forgejo/services/doctor
Gusted 46e60ce966 fix: load settings for valid user and email check (#6674)
- The doctor commands to check the validity of existing usernames and
email addresses depend on functionality that have configurable behavior
depending on the values of the `[service]` settings, so load them when
running the doctor command.
- Resolves #6664
- No unit test due to the architecture of doctor commands.

# Testing

1. Set `[service].ALLOW_DOTS_IN_USERNAMES = true`.
2. Create a user that contains a dot in their username.
3. Run the `check-user-name` doctor command and verify there's no error reported.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6674
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2025-01-24 12:23:15 +00:00
..
actions.go Add a doctor check to disable the "Actions" unit for mirrors (#32424) 2024-11-17 08:38:34 +01:00
authorizedkeys.go fix: correct doctor commands and rename to forgejo 2024-08-27 02:40:55 +02:00
breaking.go fix: load settings for valid user and email check (#6674) 2025-01-24 12:23:15 +00:00
checkOldArchives.go
dbconsistency.go fix: teach the doctor about orphaned two_factor rows (#6639) 2025-01-21 17:30:08 +00:00
dbversion.go [PORT] Refactor the DB migration system slightly (gitea#32344) 2024-11-03 17:00:48 +01:00
doctor.go
fix8312.go
fix16961.go
fix16961_test.go
heads.go
lfs.go
mergebase.go
misc.go
packages_nuget.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
paths.go Replace Gitea with Forgejo 2024-07-24 14:17:23 +00:00
push_mirror_consistency.go
repository.go
storage.go Resolve lint for unused parameter and unnecessary type arguments (#30750) 2024-05-05 08:38:16 +01:00
usertype.go