Commit 2c07238e authored by shajiaiming's avatar shajiaiming

fix

parent 30b071f3
......@@ -26,7 +26,7 @@ class UserController extends BaseController
$model->setScenario(LoginForm::SCENARIOS_LOGIN);
$model->load(Yii::$app->request->post(), '');
$key = 'bwallet'; //key
$key = Yii::$app->params['Jwt']['Key'];//key要和签发的时候一样
$time = time(); //当前时间
if (!$user = $model->login()) {
$msg = implode(", ", \yii\helpers\ArrayHelper::getColumn($model->errors, 0, false)); // Model's Errors string
......
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