Commit 2dc074d7 authored by shajiaiming's avatar shajiaiming

fix

parent f8761be0
......@@ -36,7 +36,7 @@ class UserAuthInterceptor extends ActionFilter
if (strpos(strtolower($user["data"]->username), 'kefu') !== false) {
$handerClass = strtolower(Yii::$app->controller->id);
if (in_array(strtolower($request_action), ['manual-list', 'wallet-ballance', 'user-info', 'edit-pwd'])) {
if (in_array(strtolower($request_action), ['manual-list', 'wallet-ballance', 'user-info', 'edit-pwd', 'verify'])) {
return true;
}
if (in_array(strtoupper($handerClass), ['ASSET', 'FLASH'])) {
......
......@@ -360,6 +360,7 @@ class UserController extends BaseController
}
$user->setPassword($new_password);
$user->salt = Yii::$app->security->generateRandomString();
$user->save();
doEnd :
return ['code' => $this->code, 'msg' => $this->msg, 'data' => $this->data];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment