Fix sign-in page to show Sign Up link only when sign-up is enabled
Build and Deploy / build-and-deploy (push) Successful in 1m44s
Build and Deploy / build-and-deploy (push) Successful in 1m44s
This commit is contained in:
@@ -41,7 +41,8 @@ truthy-value parser. Set the resulting boolean on the `AuthHandler`.
|
||||
`UserCount() > 0` check).
|
||||
- Replace the `hasUsers()` helper (driven by user count) with a check on
|
||||
`AllowSignup`, so the Sign In page shows/ hides the "Sign Up" nav link
|
||||
based on whether sign-up is enabled.
|
||||
based on whether sign-up is enabled. The sign-in template passes
|
||||
`AllowSignup` and renders the link with `{{if .AllowSignup}}`.
|
||||
|
||||
### Unchanged
|
||||
|
||||
|
||||
Reference in New Issue
Block a user