Commit 88b2fe45 authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/optimize' into 'master'

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