let's not check too many things, shall we?
This commit is contained in:
parent
c8ac4fdd90
commit
184cfe2454
|
@ -2,10 +2,6 @@
|
||||||
if ! session_verify "${cookies[sh_session]}"; then
|
if ! session_verify "${cookies[sh_session]}"; then
|
||||||
jq -n '{status: $ARGS.positional[0], msg: $ARGS.positional[1]}' --args -1 "You're not logged in!"
|
jq -n '{status: $ARGS.positional[0], msg: $ARGS.positional[1]}' --args -1 "You're not logged in!"
|
||||||
return
|
return
|
||||||
elif ! account_verified "$(account_get_username ${cookies[sh_session]})"; then
|
|
||||||
jq -n '{status: $ARGS.positional[0], msg: $ARGS.positional[1]}' --args -2 "You didn't verify your mail!"
|
|
||||||
return
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
source "${cfg[namespace]}/code/common.sh"
|
source "${cfg[namespace]}/code/common.sh"
|
||||||
|
|
Loading…
Reference in a new issue