summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoro11c <b.r.longbons@gmail.com>2014-02-24 20:41:34 -0800
committero11c <b.r.longbons@gmail.com>2014-02-24 20:41:34 -0800
commit4a0cdeac28c29da27d2d8d37f14c4df158e77633 (patch)
tree085a86ecdc7d69a5a5ab321dfff41c99d1f61087
parent6ada5b5ccf7d98bd02fc7f1adc2c4c78ec6968f5 (diff)
parent870a8702b83c14091999a9b6183481ae34f5b173 (diff)
downloadwebsite-4a0cdeac28c29da27d2d8d37f14c4df158e77633.tar.gz
website-4a0cdeac28c29da27d2d8d37f14c4df158e77633.tar.bz2
website-4a0cdeac28c29da27d2d8d37f14c4df158e77633.tar.xz
website-4a0cdeac28c29da27d2d8d37f14c4df158e77633.zip
Merge pull request #5 from Ablu/patch-2
[sh-version] Forget clean text password after registration
-rwxr-xr-xbin/create_account.sh11
1 files changed, 5 insertions, 6 deletions
diff --git a/bin/create_account.sh b/bin/create_account.sh
index 14fab86..f073a48 100755
--- a/bin/create_account.sh
+++ b/bin/create_account.sh
@@ -74,15 +74,14 @@ frob_accounts()
if grep -q 'successfully created' <<< "$RESULT"
then
send_email 'Your account was created successfully. Have fun playing The Mana World!'
- do_mysql << __EOF__
-update $SQL_TABLE set state = 1 where id = $ID
-__EOF__
+ STATE=1
else
send_email $'Something went wrong when automatically creating your account.\nError message:' "$RESULT"
- do_mysql << __EOF__
-update $SQL_TABLE set state = 2 where id = $ID
-__EOF__
+ STATE=2
fi
+ do_mysql << __EOF__
+update $SQL_TABLE set state = $STATE, password = '' where id = $ID
+__EOF__
done
}