Mercurial > hg > fapweb
diff usrlogin.php @ 1089:00632d30bafe
Implement new settings for making user/votekeys case-insensitive and
setting the array of characters used for generating keys in the config.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 26 Jan 2017 01:27:32 +0200 |
parents | 48e16e856646 |
children | 95b74632cfe2 |
line wrap: on
line diff
--- a/usrlogin.php Thu Jan 26 00:48:34 2017 +0200 +++ b/usrlogin.php Thu Jan 26 01:27:32 2017 +0200 @@ -26,6 +26,9 @@ $gotoPage = stGetRequestItem("goto", FALSE); $errorPage = stGetRequestItem("error", FALSE); $password = stGetRequestItem("key", FALSE); +if (stGetSetting("userKeyCase", NULL) === FALSE) + $password = strtoupper($password); + $error = 0; $sql = stPrepareSQL("SELECT * FROM votekeys WHERE key=%s", $password);