change login code for auth login

This commit is contained in:
2025-07-07 11:52:23 +03:30
parent 2e499c782d
commit 4ebaf67a43
2 changed files with 2 additions and 30 deletions

View File

@@ -14,7 +14,7 @@ class LoginRequest extends FormRequest
*/
public function authorize(): bool
{
return true;
return !User::query()->where('username', '=', $this->username)->value('is_online');
}
/**