Mercurial > hgrepos > hgweb.cgi > s4
diff s4-funcs.sh @ 870:a7ae0d67edff
XXX: Lead password resetting to base world
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Wed, 07 Oct 2020 13:01:29 +0859 |
parents | 2eaa037f35d0 |
children | cb1ff1dcb042 |
line wrap: on
line diff
--- a/s4-funcs.sh Thu Sep 10 12:11:37 2020 +0859 +++ b/s4-funcs.sh Wed Oct 07 13:01:29 2020 +0859 @@ -1449,6 +1449,15 @@ err "Login USER failed: [$user]" return 2 # 2=login fail elif [ x"$pswd" = x"wasureta" ]; then + if [ -n "$S4MASTERDB" ]; then + contenttype; echo + echo "Reset password is valid in BASE world." | html p + echo "パスワードリセットはベースワールドでおこなってください。" | html p + cat <<-EOF | html p + <a href="$S4MASTERURL">BASE World</a> + EOF + exit 0 # XXXXX more smart... + fi wasureta "$user" err wasureta issued for "$user" return 1 # wasureta error