From 91539d85cc2c146a17a2bb547d1dc2ba8ef71d25 Mon Sep 17 00:00:00 2001 From: Sohel Ahmed Date: Wed, 15 Nov 2017 23:55:17 +0530 Subject: [PATCH 1/6] password set to empty string --- controllers/SiteController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controllers/SiteController.php b/controllers/SiteController.php index 63ae7fe40..1a84f9cfb 100644 --- a/controllers/SiteController.php +++ b/controllers/SiteController.php @@ -79,6 +79,8 @@ public function actionLogin() if ($model->load(Yii::$app->request->post()) && $model->login()) { return $this->goBack(); } + + $model->password = ''; return $this->render('login', [ 'model' => $model, ]); From b4cd1d2ccc51838b6965be3ad0228696481fe3eb Mon Sep 17 00:00:00 2001 From: Sohel Ahmed Mesaniya Date: Mon, 13 Sep 2021 11:40:18 +0530 Subject: [PATCH 2/6] Provide IDE autocomplete hints Fix https://github.com/yiisoft/yii2-app-basic/issues/216 --- config/__autocomplete.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 config/__autocomplete.php diff --git a/config/__autocomplete.php b/config/__autocomplete.php new file mode 100644 index 000000000..062556156 --- /dev/null +++ b/config/__autocomplete.php @@ -0,0 +1,26 @@ + Date: Tue, 21 Sep 2021 14:17:04 +0530 Subject: [PATCH 3/6] Update config/__autocomplete.php Co-authored-by: Carsten Brandt --- config/__autocomplete.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/__autocomplete.php b/config/__autocomplete.php index 062556156..d6cbb7da1 100644 --- a/config/__autocomplete.php +++ b/config/__autocomplete.php @@ -6,7 +6,7 @@ */ class Yii { /** - * @var \yii\web\Application|\yii\console\Application|__HostingApplication + * @var \yii\web\Application|\yii\console\Application|__Application */ public static $app; } From a70c4051cc8b06de81c3b8ccb03ae6ece2e19b45 Mon Sep 17 00:00:00 2001 From: Sohel Ahmed Mesaniya Date: Tue, 21 Sep 2021 14:17:17 +0530 Subject: [PATCH 4/6] Update config/__autocomplete.php Co-authored-by: Carsten Brandt --- config/__autocomplete.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/__autocomplete.php b/config/__autocomplete.php index d6cbb7da1..4b124521f 100644 --- a/config/__autocomplete.php +++ b/config/__autocomplete.php @@ -16,7 +16,7 @@ class Yii { * @property yii\queue\redis\Queue $queue * @property __WebUser $user */ -class __HostingApplication { +class __Application { } /** From f472519f38798643dd86709b02ee2806ab73fcda Mon Sep 17 00:00:00 2001 From: Sohel Ahmed Mesaniya Date: Tue, 21 Sep 2021 14:17:29 +0530 Subject: [PATCH 5/6] Update config/__autocomplete.php Co-authored-by: Carsten Brandt --- config/__autocomplete.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/__autocomplete.php b/config/__autocomplete.php index 4b124521f..ca87fb5f9 100644 --- a/config/__autocomplete.php +++ b/config/__autocomplete.php @@ -14,7 +14,7 @@ class Yii { /** * @property yii\rbac\DbManager $authManager * @property yii\queue\redis\Queue $queue - * @property __WebUser $user + * @property \yii\web\User|__WebUser $user */ class __Application { } From a2bd73f22aa7122335599923a5307c923a7ff7ba Mon Sep 17 00:00:00 2001 From: Sohel Ahmed Mesaniya Date: Tue, 21 Sep 2021 14:25:50 +0530 Subject: [PATCH 6/6] Update __autocomplete.php --- config/__autocomplete.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/config/__autocomplete.php b/config/__autocomplete.php index ca87fb5f9..d99dea50e 100644 --- a/config/__autocomplete.php +++ b/config/__autocomplete.php @@ -3,6 +3,13 @@ /** * This class only exists here for IDE (PHPStorm/Netbeans/...) autocompletion. * This file is never included anywhere. + * Adjust this file to match classes configured in your application config, to enable IDE autocompletion for custom components. + * Example: A property phpdoc can be added in `__Application` class as `@property \vendor\package\Rollbar|__Rollbar $rollbar` and adding a class in this file + * ```php + * // @property of \vendor\package\Rollbar goes here + * class __Rollbar { + * } + * ``` */ class Yii { /** @@ -12,9 +19,9 @@ class Yii { } /** - * @property yii\rbac\DbManager $authManager - * @property yii\queue\redis\Queue $queue + * @property yii\rbac\DbManager $authManager * @property \yii\web\User|__WebUser $user + * */ class __Application { }