소스 검색

增加很多功能

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 ?? '');
     }
 
     /**