Close #269 added help for console commands + php-cs-fixer

This commit is contained in:
tonydspaniard
2019-06-29 08:32:35 +02:00
parent d4695a60d2
commit 8c551d9030
27 changed files with 123 additions and 85 deletions

View File

@ -16,6 +16,7 @@ use Da\User\Query\UserQuery;
use Da\User\Service\ResetPasswordService;
use Da\User\Traits\ContainerAwareTrait;
use Yii;
use yii\base\InvalidConfigException;
use yii\base\Module;
use yii\console\Controller;
use yii\helpers\Console;
@ -32,6 +33,14 @@ class PasswordController extends Controller
parent::__construct($id, $module, $config);
}
/**
* This command updates the user's password.
*
* @param string $usernameOrEmail Username or email of the user who's password needs to be updated
* @param string $password The new password
*
* @throws InvalidConfigException
*/
public function actionIndex($usernameOrEmail, $password)
{
/** @var User $user */