Software /
code /
prosody-modules
Changeset
5841:d3b69859553a
mod_password_policy: Change error type from 'cancel' to 'modify'
This makes more sense, as the problem relates to the data that has been
entered, and therefore the request could be retried with different data.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 08 Jan 2024 17:28:39 +0000 |
parents | 5840:7905766d01f6 |
children | 5842:bb51cf204dd4 |
files | mod_password_policy/mod_password_policy.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_password_policy/mod_password_policy.lua Mon Jan 08 15:56:11 2024 +0000 +++ b/mod_password_policy/mod_password_policy.lua Mon Jan 08 17:28:39 2024 +0000 @@ -100,7 +100,7 @@ local pw_ok, pw_err, pw_failed_policy = check_password(password, additional_info); if not pw_ok then module:log("debug", "Password failed check against '%s' policy", pw_failed_policy); - origin.send(st.error_reply(stanza, "cancel", "not-acceptable", pw_err)); + origin.send(st.error_reply(stanza, "modify", "not-acceptable", pw_err)); return true; end end