Permalink
Browse files

UserManager: checks email validity

  • Loading branch information...
dg committed Nov 5, 2018
1 parent 792c196 commit 1a6dd4158f4fda722a94de0f9f16f8d1a38f9f71
Showing with 1 addition and 0 deletions.
  1. +1 −0 app/model/UserManager.php
@@ -74,6 +74,7 @@ public function authenticate(array $credentials): Nette\Security\IIdentity
*/
public function add(string $username, string $email, string $password): void
{
Nette\Utils\Validators::assert($email, 'email');
try {
$this->database->table(self::TABLE_NAME)->insert([
self::COLUMN_NAME => $username,

0 comments on commit 1a6dd41

Please sign in to comment.