mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2026-03-25 17:03:05 -04:00
This PR is in preparation of, but independent of, an upcoming suggestion for a feature addition: * The first commit moves a tiny bit of logic into a separate function to prepare for extension of that logic, avoiding duplication * The second commit moves checking for disabled registrations earlier, which, I think, has merits in terms of performance and resilience (hopefully not significant, but who knows?) * The third commit adds simple unit tests for SignUp() and SignUpPost() to avoid the long-ish roundtrip over integration tests * The forth commit introduces `ctx.Data["DisableRegistrationReason"]` for the signup template to use as the reason printed if `.DisableRegistration` to prepare for other reasons to be added Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/10915 Reviewed-by: Gusted <gusted@noreply.codeberg.org> Co-authored-by: Nils Goroll <nils.goroll@uplex.de> Co-committed-by: Nils Goroll <nils.goroll@uplex.de> |
||
|---|---|---|
| .. | ||
| activate.tmpl | ||
| captcha.tmpl | ||
| change_passwd.tmpl | ||
| change_passwd_inner.tmpl | ||
| finalize_openid.tmpl | ||
| forgot_passwd.tmpl | ||
| grant.tmpl | ||
| grant_error.tmpl | ||
| link_account.tmpl | ||
| oauth_container.tmpl | ||
| oidc_wellknown.tmpl | ||
| prohibit_login.tmpl | ||
| reset_passwd.tmpl | ||
| signin.tmpl | ||
| signin_inner.tmpl | ||
| signin_openid.tmpl | ||
| signup.tmpl | ||
| signup_inner.tmpl | ||
| signup_openid_connect.tmpl | ||
| signup_openid_navbar.tmpl | ||
| signup_openid_register.tmpl | ||
| twofa.tmpl | ||
| twofa_scratch.tmpl | ||
| webauthn.tmpl | ||
| webauthn_error.tmpl | ||