Compare commits

..

No commits in common. "61db8fcc95051790d5e10d8d26f4bcc57c977836" and "142509e9f65d48149e8e71d118c441659455cff0" have entirely different histories.

3 changed files with 4 additions and 9 deletions

View File

@ -10,7 +10,7 @@
} }
], ],
"require": { "require": {
"mcnd/ulmus": "^1.0 || ^2.0" "mcnd/ulmus": "dev-master"
}, },
"repositories": [ "repositories": [
{ {

View File

@ -80,13 +80,9 @@ abstract class User implements UserInterface {
return password_verify($password, $this->password ?? null); return password_verify($password, $this->password ?? null);
} }
public function fullname(bool $reverse = false) : string public function fullName() : string
{ {
if (! $this->isLoaded() ) { return trim( ( $this->firstName ?? "" ) . " " . ( $this->lastName ?? "" ) );
return "???";
}
return trim($reverse ? "{$this->lastName}, {$this->firstName}" : "{$this->firstName} {$this->lastName}");
} }
public function loggedIn(?bool $set = null): bool public function loggedIn(?bool $set = null): bool

View File

@ -37,8 +37,7 @@ class Authenticate {
return null; return null;
} }
public function forgetMe() : void public function forgetMe() {
{
$this->cookie->delete("user.id"); $this->cookie->delete("user.id");
$this->session->destroy(); $this->session->destroy();
} }