mirror of
https://github.com/standardebooks/web.git
synced 2025-07-12 17:42:29 -04:00
Add password login option for some users, and further refinements to artwork management system
This commit is contained in:
parent
8a1b11b815
commit
5a1c05d8c5
22 changed files with 234 additions and 150 deletions
|
@ -32,8 +32,8 @@ class Session extends PropertiesBase{
|
|||
// METHODS
|
||||
// *******
|
||||
|
||||
public function Create(?string $email = null): void{
|
||||
$this->User = User::GetIfRegistered($email);
|
||||
public function Create(?string $email = null, ?string $password = null): void{
|
||||
$this->User = User::GetIfRegistered($email, $password);
|
||||
$this->UserId = $this->User->UserId;
|
||||
|
||||
$existingSessions = Db::Query('
|
||||
|
@ -59,7 +59,7 @@ class Session extends PropertiesBase{
|
|||
', [$this->UserId, $this->SessionId, $this->Created]);
|
||||
}
|
||||
|
||||
$this->SetSessionCookie($this->SessionId);
|
||||
self::SetSessionCookie($this->SessionId);
|
||||
}
|
||||
|
||||
public static function GetLoggedInUser(): ?User{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue