This commit is contained in:
resurtm
2017-01-11 22:42:15 +06:00
parent a3434504e6
commit 1cb60f0740
78 changed files with 354 additions and 290 deletions

View File

@ -38,12 +38,12 @@ class PasswordController extends Controller
$user = $this->userQuery->whereUsernameOrEmail($usernameOrEmail)->one();
if ($user === null) {
$this->stdout(Yii::t('user', 'User is not found')."\n", Console::FG_RED);
$this->stdout(Yii::t('usuario', 'User is not found')."\n", Console::FG_RED);
} else {
if ($this->make(ResetPasswordService::class, [$password, $user])->run()) {
$this->stdout(Yii::t('user', 'Password has been changed')."\n", Console::FG_GREEN);
$this->stdout(Yii::t('usuario', 'Password has been changed')."\n", Console::FG_GREEN);
} else {
$this->stdout(Yii::t('user', 'Error occurred while changing password')."\n", Console::FG_RED);
$this->stdout(Yii::t('usuario', 'Error occurred while changing password')."\n", Console::FG_RED);
}
}
}