diff --git a/frontend/controllers/SiteController.php b/frontend/controllers/SiteController.php index 20e3968..1a8d292 100755 --- a/frontend/controllers/SiteController.php +++ b/frontend/controllers/SiteController.php @@ -275,7 +275,7 @@ class SiteController extends Controller /** * Resets password. * - * @param string $token + * @param string $tokenre * @return mixed * @throws BadRequestHttpException */ diff --git a/frontend/views/site/login.php b/frontend/views/site/login.php index 746a527..4b4691b 100755 --- a/frontend/views/site/login.php +++ b/frontend/views/site/login.php @@ -1,33 +1,47 @@ title = 'Login'; -$this->params['breadcrumbs'][] = $this->title; + use common\models\LoginForm; + use yii\helpers\Html; + use yii\widgets\ActiveForm; + + /** + * @var yii\web\View $this + * @var yii\widgets\ActiveForm $form + * @var LoginForm $model + */ + $this->title = 'Login'; + $this->params[ 'breadcrumbs' ][] = $this->title; ?> -

title); ?>

+

title); ?>

getSession()->hasFlash('error')) { - echo '
'.Yii::$app->getSession()->getFlash('error').'
'; + if(Yii::$app->getSession() + ->hasFlash('error') + ) { + echo '
' . Yii::$app->getSession() + ->getFlash('error') . '
'; } ?> -

Do you already have an account on one of these sites? Click the logo to log in with it here:

- 'site/login')); ?> -
+

Do you already have an account on one of these sites? Click the logo to log in with it here:

+ 'site/login' ]); ?> +
-

Please fill out the following fields to login:

+

Please fill out the following fields to login:

- array('class' => 'form-horizontal', 'id' => 'login-form'))); ?> - field($model, 'username')->textInput(); ?> - field($model, 'password')->passwordInput(); ?> - field($model, 'rememberMe')->checkbox(); ?> + [ + 'class' => 'form-horizontal', + 'id' => 'login-form', + ], +]); ?> +field($model, 'username') + ->textInput(); ?> +field($model, 'password') + ->passwordInput(); ?> +field($model, 'rememberMe') + ->checkbox(); ?>
- 'btn btn-primary')); ?> + 'btn btn-primary' ]); ?>
+ \ No newline at end of file -- libgit2 0.21.4