|
@@ 44-46 (lines=3) @@
|
| 41 |
|
* @return bool |
| 42 |
|
*/ |
| 43 |
|
public function is_unique_username(string $username) : bool { |
| 44 |
|
if(!($isValid = $this->is_unique($username, "{$this->user_tables['users']}.username"))) { |
| 45 |
|
$this->set_message('is_unique_username', 'The username already exists in our database.'); |
| 46 |
|
} |
| 47 |
|
return $isValid; |
| 48 |
|
} |
| 49 |
|
/** |
|
@@ 54-56 (lines=3) @@
|
| 51 |
|
* @return bool |
| 52 |
|
*/ |
| 53 |
|
public function is_unique_email(string $email) : bool { |
| 54 |
|
if(!($isValid = $this->is_unique($email, "{$this->user_tables['users']}.email"))) { |
| 55 |
|
$this->set_message('is_unique_email', 'The email already exists in our database.'); |
| 56 |
|
} |
| 57 |
|
return $isValid; |
| 58 |
|
} |
| 59 |
|
|