mirror of
https://github.com/standardebooks/web.git
synced 2025-07-14 18:42:00 -04:00
Style tweaks
This commit is contained in:
parent
a54cca24b6
commit
2bfff1f962
2 changed files with 14 additions and 22 deletions
|
@ -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('
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue