Kaynağa Gözat

增加很多功能

yemeishu 1 ay önce
ebeveyn
işleme
88c0a442f1
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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 ?? '');
     }
 
     /**