<?php

/*
 * This file is part of the 2amigos/yii2-usuario project.
 *
 * (c) 2amigOS! <http://2amigos.us/>
 *
 * For the full copyright and license information, please view
 * the LICENSE file that was distributed with this source code.
 */

/**
 * @var \Da\User\Model\User $user
 * @var \Da\User\Model\Token $token
 * @var \Da\User\Module $module
 * @var bool $showPassword
 */

use yii\helpers\Url;

?>
<?= Yii::t('usuario', 'Hello') ?>,

<?= Yii::t('usuario', 'Your account on {0} has been created', Yii::$app->name) ?>.
<?php if ($showPassword || $module->generatePasswords): ?>
    <?= Yii::t('usuario', 'We have generated a password for you') ?>:
    <?= $user->password ?>
<?php endif ?>
<?php if ($module->allowPasswordRecovery): ?>
    <?= Yii::t('usuario', 'If you haven\'t received a password, you can reset it at') ?>:
    <?= Url::to(['/user/recovery/request'], true) ?>
<?php endif ?>

<?php if ($token !== null): ?>
    <?= Yii::t('usuario', 'In order to complete your registration, please click the link below') ?>.
    <?= $token->url ?>
    <?= Yii::t('usuario', 'If you cannot click the link, please try pasting the text into your browser') ?>.
<?php endif ?>

<?= Yii::t('usuario', 'You received this email because someone, possibly you or someone on your behalf, have created an account at {app_name}', ['app_name' => Yii::$app->name]) ?>.
