login register token logic is ready. Fixed also some syntax bugs
This commit is contained in:
@@ -47,4 +47,12 @@ class TokenHandler
|
||||
}
|
||||
}
|
||||
}
|
||||
public static function deleteTokensForUser(string $user)
|
||||
{
|
||||
for ($i = 0; $i < count(self::$tokens); ++$i) {
|
||||
if (self::$tokens[$i][0] === $user) {
|
||||
array_splice(self::$tokens, $i, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user