feat: golem15.user.password.public_routes false leaves POST /login, /forgot-password and /reset-password unregistered, so they 404 like any unknown path
The key defaults to true, so the route table is unchanged. False skips only those three registrations: they get the router's own 404, with no custom handler and no framework change. /register keeps allow_registration and the turnstile guard. The key is read at boot, and a value other than true or false fails boot like golem15.user.turnstile.
This commit is contained in:
@@ -25,6 +25,10 @@ throttle:
|
||||
password:
|
||||
bcrypt_cost: 10
|
||||
min_length: 8
|
||||
# false leaves POST /login, /forgot-password and /reset-password
|
||||
# unregistered, so they 404 like any unknown path; /register and the other
|
||||
# routes stay. Read at boot (a change needs a restart). Takes true or false.
|
||||
public_routes: true
|
||||
api_tokens:
|
||||
prefix: usr_
|
||||
privileged_groups:
|
||||
|
||||
Reference in New Issue
Block a user