Skip to content

Commit c134aaa

Browse files
committed
chore: If auth expired return false in authenticate method
Implements #728
1 parent e06dc60 commit c134aaa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/Services/PlaylistService.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,11 @@ public function authenticate($username, $password): array|bool
422422
->first();
423423

424424
if ($alias) {
425+
// If alias found but expired, treat as not found
426+
if ($alias->isExpired()) {
427+
return false;
428+
}
429+
425430
return [
426431
$alias,
427432
'alias_auth',

0 commit comments

Comments
 (0)