mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-10-30 16:16:19 +00:00
fix: re-prompt for a pasted session secret under 32 characters in setup.sh, which broke admin sign-in and remember-me
This commit is contained in:
@@ -692,6 +692,11 @@ screen_security_config() {
|
||||
fi
|
||||
else
|
||||
prompt_value "Session secret (paste your own)" "" "CFG_SESSION_SECRET"
|
||||
# Admin sign-in and "Remember me" refuse a secret under 32 characters
|
||||
while [[ -n "$CFG_SESSION_SECRET" && ${#CFG_SESSION_SECRET} -lt 32 ]]; do
|
||||
echo -e " ${RED}The session secret needs at least 32 characters. Leave it empty to go without one.${RESET}"
|
||||
prompt_value "Session secret (paste your own)" "" "CFG_SESSION_SECRET"
|
||||
done
|
||||
fi
|
||||
else
|
||||
echo -e " ${OK} Session secret is already configured"
|
||||
|
||||
Reference in New Issue
Block a user