Style tweaks

This commit is contained in:
Alex Cabal 2024-06-03 15:10:18 -05:00
parent a54cca24b6
commit 2bfff1f962
2 changed files with 14 additions and 22 deletions

View file

@ -37,12 +37,14 @@ class Session{
// *******
/**
* @param ?string $identifier Either the email, or the UUID, of the user attempting to log in.
*
* @throws Exceptions\InvalidLoginException
* @throws Exceptions\PasswordRequiredException
*/
public function Create(?string $email = null, ?string $password = null): void{
public function Create(?string $identifier = null, ?string $password = null): void{
try{
$this->User = User::GetIfRegistered($email, $password);
$this->User = User::GetIfRegistered($identifier, $password);
$this->UserId = $this->User->UserId;
$existingSessions = Db::Query('