0
我試圖清除用戶的密碼,所以舊密碼變得無用,用戶必須選擇一個新的,但如果我嘗試設置null
或空口令我獲得:清除用戶密碼4
Cartalyst \ Sentry \ Users \ PasswordRequiredException
A password is required for user [mickeymouse], none given.
這是我的代碼,任何想法?由於
// clearing the user's password
$user->password = null;
$user->save();
$code = $user->getPasswordResetCode();
// ...send code by email