Browse Source

后台修改密码bug修复

xiaogang 3 years ago
parent
commit
aeebd165d8
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/Models/User.php

+ 1 - 0
app/Models/User.php

xqd
@@ -52,6 +52,7 @@ class User extends Authenticatable implements JWTSubject
      */
     public function setPasswordAttribute($value)
     {
+        file_put_contents('password.log','----'.date('Y-m-d H:i:s').'----'.var_export($value,true).PHP_EOL,FILE_APPEND);
         $this->attributes['password'] = bcrypt($value);
     }