Skip to content

Commit

Permalink
Missing strtolower()
Browse files Browse the repository at this point in the history
  • Loading branch information
vphantom committed Oct 10, 2018
1 parent 1ae46ae commit c6410f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Pyrite/Users.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,9 @@ public static function update($id, $cols = array())
$cols['passwordHash'] = password_hash($cols['newpassword1'], PASSWORD_DEFAULT);
// Entries 'newpassword[12]' will be safely skipped by $db->update()
};
if (isset($cols['email'])) {
$cols['email'] = strtolower($cols['email']);
};
$ott = '';
$onetime = null;
if (isset($cols['onetime'])) {
Expand Down

0 comments on commit c6410f1

Please sign in to comment.