Skip to content

Commit

Permalink
in case
Browse files Browse the repository at this point in the history
  • Loading branch information
tenmajkl committed Sep 13, 2024
1 parent eb471e7 commit 4117696
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Controllers/Auth/Verify.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function get($token, $school, Session $session, ORM $orm): RedirectRespon
return redirect('/register');
}

if (_time() - $user->createdAt->getTimestamp() > 600) {
if (time() - $user->createdAt->getTimestamp() > 600) {
$orm->getEntityManager()->delete($user)->run();
return redirect('/');
}
Expand Down
2 changes: 1 addition & 1 deletion src/Mailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function __construct(Config $config)
public function send(RawMessage $message, Envelope $envelope = null): void
{
if (config('debug.debug')) {
//d($message); return; // dirty debugging practice
d($message); return; // dirty debugging practice
return;
}
$this->mailer->send($message, $envelope);
Expand Down

0 comments on commit 4117696

Please sign in to comment.