let's not check too many things, shall we?

master
Dominika Liberda 2020-10-29 23:32:18 +01:00
parent c8ac4fdd90
commit 184cfe2454
1 changed files with 0 additions and 4 deletions

View File

@ -2,10 +2,6 @@
if ! session_verify "${cookies[sh_session]}"; then
jq -n '{status: $ARGS.positional[0], msg: $ARGS.positional[1]}' --args -1 "You're not logged in!"
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
source "${cfg[namespace]}/code/common.sh"