liquid_feedback_frontend
changeset 1857:1c329811e47f
Allow to hide password reset and login recover feature
author | bsw |
---|---|
date | Sat Sep 17 21:32:10 2022 +0200 (2022-09-17) |
parents | 7d60ede7005e |
children | 3d1f0464a3ea |
files | app/main/index/_action/reset_password.lua app/main/index/_action/send_login.lua |
line diff
1.1 --- a/app/main/index/_action/reset_password.lua Sat Sep 17 21:30:43 2022 +0200 1.2 +++ b/app/main/index/_action/reset_password.lua Sat Sep 17 21:32:10 2022 +0200 1.3 @@ -1,5 +1,9 @@ 1.4 trace.disable() 1.5 - 1.6 + 1.7 +if config.hide_reset_password then 1.8 + return 1.9 +end 1.10 + 1.11 local secret = param.get("secret") 1.12 1.13 if not secret then
2.1 --- a/app/main/index/_action/send_login.lua Sat Sep 17 21:30:43 2022 +0200 2.2 +++ b/app/main/index/_action/send_login.lua Sat Sep 17 21:32:10 2022 +0200 2.3 @@ -1,5 +1,9 @@ 2.4 trace.disable() 2.5 2.6 +if config.hide_recover_login then 2.7 + return 2.8 +end 2.9 + 2.10 local email = param.get("email") 2.11 2.12 local members = Member:new_selector()