yemeishu пре 1 месец
родитељ
комит
88c0a442f1
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/Models/User.php

+ 1 - 1
app/Models/User.php

@@ -93,7 +93,7 @@ class User extends Authenticatable implements FilamentUser, HasName
      */
     public function getAuthPassword(): string
     {
-        return $this->password_hash;
+        return (string) ($this->password_hash ?? $this->password ?? '');
     }
 
     /**