removed blade and htmx
This commit is contained in:
@@ -9,7 +9,6 @@ use Illuminate\Support\Str;
|
||||
use Lucent\Channel\ChannelService;
|
||||
use Lucent\LucentException;
|
||||
use Lucent\Mail\LoginMail;
|
||||
use Filament\Facades\Filament;
|
||||
|
||||
readonly class AuthServiceLucent implements AuthService
|
||||
{
|
||||
@@ -41,8 +40,8 @@ readonly class AuthServiceLucent implements AuthService
|
||||
name: new Name($this->session->get("user.name")),
|
||||
email: new Email($this->session->get("user.email")),
|
||||
roles: $this->session->get("user.roles"),
|
||||
createdAt: $this->session->get("user.createdAt"),
|
||||
updatedAt: $this->session->get("user.updatedAt"),
|
||||
createdAt: Carbon::parse($this->session->get("user.createdAt")),
|
||||
updatedAt: Carbon::parse($this->session->get("user.updatedAt")),
|
||||
loggedInAt: null,
|
||||
mailToken: null,
|
||||
);
|
||||
@@ -81,7 +80,7 @@ readonly class AuthServiceLucent implements AuthService
|
||||
}
|
||||
|
||||
$newUser = $user->get();
|
||||
$newUser->updatedAt = Carbon::now()->toJson();
|
||||
$newUser->updatedAt = Carbon::now();
|
||||
$newUser->mailToken = null;
|
||||
$this->userRepo->update($newUser);
|
||||
$this->session->put(["user" => $user->get()->safe()]);
|
||||
@@ -110,9 +109,9 @@ readonly class AuthServiceLucent implements AuthService
|
||||
name: new Name($name),
|
||||
email: new Email($email),
|
||||
roles: $this->validateRoles($roles),
|
||||
createdAt: Carbon::now()->toJson(),
|
||||
updatedAt: Carbon::now()->toJson(),
|
||||
loggedInAt: Carbon::now()->toJson(),
|
||||
createdAt: Carbon::now(),
|
||||
updatedAt: Carbon::now(),
|
||||
loggedInAt: Carbon::now(),
|
||||
mailToken: Token::new(32),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user