Browse Source

Case insensitive email matching for account recovery

spaghetti 8 years ago
parent
commit
05f921f0ad
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      sections/login/index.php

+ 1
- 1
sections/login/index.php View File

122
             Email
122
             Email
123
           FROM users_main");
123
           FROM users_main");
124
         while(list($EncEmail) = $DB->next_record()) {
124
         while(list($EncEmail) = $DB->next_record()) {
125
-          if ($_REQUEST['email'] == DBCrypt::decrypt($EncEmail)) {
125
+          if (strtolower($_REQUEST['email']) == strtolower(DBCrypt::decrypt($EncEmail))) {
126
             break; // $EncEmail is now the encrypted form of the given email from the database
126
             break; // $EncEmail is now the encrypted form of the given email from the database
127
           }
127
           }
128
         }
128
         }

Loading…
Cancel
Save