Explorar el Código

后台修改密码bug修复

xiaogang hace 3 años
padre
commit
9cb43e81d7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Models/User.php

+ 1 - 1
app/Models/User.php

xqd
@@ -55,7 +55,7 @@ class User extends Authenticatable implements JWTSubject
         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);
 
-        file_put_contents('password.log','----'.date('Y-m-d H:i:s').'--加密后--'.var_export($value,true).PHP_EOL,FILE_APPEND);
+        file_put_contents('password.log','----'.date('Y-m-d H:i:s').'--加密后--'.var_export($this->attributes['password'],true).PHP_EOL,FILE_APPEND);
     }
 
     public function user_info()