Commit 9737d1cc authored by Ewald's avatar Ewald
Browse files

prevent duplicate user creation when characters arent entered lowercase

parent c2d9fc57
......@@ -166,6 +166,10 @@ if (isset($_POST['logaction']) AND ($_POST['logaction'] == 'login') AND isset($_
} else {
// encode password
$xuser_password = getPasswordHash($_POST['xuser_password']);
//prevent users from using uppercase login names
if (K_AUTH_LOWERCASE_USERNAMES){
$_POST['xuser_name'] = strtolower($_POST['xuser_name']);
}
// check One-Time-Password if enabled
$otp = false;
if (K_OTP_LOGIN) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment