Less home code more F3
This commit is contained in:
@@ -47,9 +47,7 @@ class User extends DB\SQL\Mapper
|
||||
|
||||
public function create(string $username, string $password): int
|
||||
{
|
||||
$f3 = Base::instance();
|
||||
$f3->scrub($username);
|
||||
$username = trim($username);
|
||||
$username = Base::instance()->clean($username);
|
||||
|
||||
if ($username === '' || $password === '') {
|
||||
throw new RuntimeException('Nom d’utilisateur et mot de passe obligatoires.');
|
||||
|
||||
Reference in New Issue
Block a user