jojo/routers/web/user/setting
Gusted 7ed496ea37 fix: reflect allowed username change in profile setting (#11171)
- When working forgejo/forgejo!8714 I did not touch the UI to remove the
note and `disabled` attribute. This was not intentional, and was likely
caused by me straight going for testing (as the backend code would allow
the username change).
- Slightly refactor the context to a common function, don't hard error
if `CanUserRename` fails but does default to that you cannot rename in
that case (which is the standard behavior of OAuth2 users anyway).

I already was aware that it seems !8714 wasn't working on Codeberg but someone at FOSDEM pointed it out again, thus the reason for this bug fix.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/11171
Reviewed-by: Mathieu Fenniak <mfenniak@noreply.codeberg.org>
Reviewed-by: Beowulf <beowulf@beocode.eu>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2026-02-06 17:47:30 +01:00
..
security feat: Global 2FA enforcement (#8753) 2025-08-15 10:56:45 +02:00
account.go feat: add manage_password to user disable features (#10541) 2026-01-26 18:58:39 +01:00
account_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
adopt.go chore(i18n): cleanup settings.adopt string (#7451) 2025-04-03 16:50:39 +00:00
applications.go Add new CLI flags to set name and scopes when creating a user with access token (#34080) 2025-04-07 17:26:34 +02:00
blocked_users.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
keys.go chore(cleanup): replaces unnecessary calls to formatting functions by non-formatting equivalents (#7994) 2025-05-29 17:34:29 +02:00
main_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
oauth2.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
oauth2_common.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
packages.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
profile.go fix: reflect allowed username change in profile setting (#11171) 2026-02-06 17:47:30 +01:00
runner.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
storage_overview.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
webhooks.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00