Files
gitocean/modules/setting
GustedandGusted 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
..
2023-12-19 09:29:05 +00:00
2023-07-04 18:36:08 +00:00
2024-08-09 07:49:13 +00:00
2023-06-18 16:10:44 +00:00
2024-11-17 00:42:31 +00:00
2023-10-10 18:47:49 +08:00
2024-08-21 16:06:17 +02:00
2024-06-07 17:12:48 +00:00
2024-08-09 07:49:13 +00:00
2024-11-11 12:44:36 +01:00
2024-06-16 13:42:58 +02:00
2023-02-20 16:18:26 -06:00
2024-03-27 22:26:55 +01:00