mirror of
https://github.com/cgsmith/yii2-user.git
synced 2026-02-04 00:02:37 -06:00
first commit
This commit is contained in:
37
src/views/mail/confirmation.php
Normal file
37
src/views/mail/confirmation.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @var yii\web\View $this
|
||||
* @var cgsmith\user\models\User $user
|
||||
* @var cgsmith\user\models\Token $token
|
||||
* @var string $url
|
||||
* @var cgsmith\user\Module $module
|
||||
*/
|
||||
|
||||
use yii\helpers\Html;
|
||||
|
||||
?>
|
||||
<h2 style="color: #333; margin-top: 0;"><?= Yii::t('user', 'Confirm Your Email') ?></h2>
|
||||
|
||||
<p><?= Yii::t('user', 'Please click the button below to confirm your email address:') ?></p>
|
||||
|
||||
<p style="text-align: center; margin: 30px 0;">
|
||||
<a href="<?= Html::encode($url) ?>"
|
||||
style="display: inline-block; padding: 12px 30px; background-color: #0d6efd; color: #fff; text-decoration: none; border-radius: 5px; font-weight: bold;">
|
||||
<?= Yii::t('user', 'Confirm Email') ?>
|
||||
</a>
|
||||
</p>
|
||||
|
||||
<p style="color: #6c757d; font-size: 14px;">
|
||||
<?= Yii::t('user', 'If the button above does not work, copy and paste this URL into your browser:') ?>
|
||||
<br>
|
||||
<a href="<?= Html::encode($url) ?>" style="color: #0d6efd; word-break: break-all;"><?= Html::encode($url) ?></a>
|
||||
</p>
|
||||
|
||||
<p style="color: #6c757d; font-size: 14px;">
|
||||
<?= Yii::t('user', 'This link will expire in {hours} hours.', ['hours' => round($module->confirmWithin / 3600)]) ?>
|
||||
</p>
|
||||
|
||||
<p style="color: #6c757d; font-size: 14px;">
|
||||
<?= Yii::t('user', 'If you did not request this email, please ignore it.') ?>
|
||||
</p>
|
||||
Reference in New Issue
Block a user