Skip to content

Commit

Permalink
fix bug allowing only lowercase usernames
Browse files Browse the repository at this point in the history
  • Loading branch information
randomchars42 committed Jun 15, 2017
1 parent 3b5df01 commit e7e4ce0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OlmServer/UserManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function __construct(\Doctrine\DBAL\Connection $connection, \Symfony\Comp
}

public function loadUserByUsername($username) {
$stmt = $this->connection->executeQuery('SELECT * FROM ' . $this->prefix . 'users WHERE username = ?', array(strtolower($username)));
$stmt = $this->connection->executeQuery('SELECT * FROM ' . $this->prefix . 'users WHERE username = ?', array($username));

if (!$data = $stmt->fetch()) {
return null;//throw new UsernameNotFoundException(sprintf('Username "%s" does not exist.', $username));
Expand Down

0 comments on commit e7e4ce0

Please sign in to comment.