We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a424474 commit 7b2d1acCopy full SHA for 7b2d1ac
src/model/Builder/UserBuilder.php
@@ -42,7 +42,7 @@ public function isValid()
42
if (strlen($this->get('email')) < 1) {
43
$this->addError('Nebol zadaný email');
44
}
45
- $user = $this->database->table($this->tableName)->where(['LOWER(email)' => strtolower($this->get('email'))])->fetch();
+ $user = $this->database->table($this->tableName)->where(['email' => $this->get('email')])->fetch();
46
if ($user) {
47
$this->addError("Email '{$this->get('email')}' je už registrovaný");
48
0 commit comments