Quellcode durchsuchen

增加很多功能

yemeishu vor 1 Monat
Ursprung
Commit
88c0a442f1
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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
     public function getAuthPassword(): string
     {
     {
-        return $this->password_hash;
+        return (string) ($this->password_hash ?? $this->password ?? '');
     }
     }
 
 
     /**
     /**