Skip to content
Snippets Groups Projects
Commit 9737d1cc authored by Ewald's avatar Ewald
Browse files

prevent duplicate user creation when characters arent entered lowercase

parent c2d9fc57
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment