+ = Yii::t('usuario', 'Credentials will be sent to the user by email') ?>.
+ = Yii::t(
+ 'usuario',
+ 'A password will be generated automatically if not provided'
+ ) ?>.
+
+ getUser()->auth_tf_type;
+ $message = '';
+ switch ($method) {
+ case 'email':
+ $message = Yii::t('usuario', 'The email address set is: "{0}".', [ $model->getUser()->email] );
+ break;
+ case 'sms':
+ $message = Yii::t('usuario', 'The phone number set is: "{0}".', [ $model->getUser()->auth_tf_mobile_phone]);
+ break;
+ }
+ ?>
+ = Yii::t('usuario', 'Your two factor authentication method is based on "{0}".', [$method] ) .' ' . $message ?>
+
+
+ = Html::a(
+ Yii::t('usuario', 'Disable two factor authentication'),
+ ['two-factor-disable', 'id' => $model->getUser()->id],
+ [
+ 'id' => 'disable_tf_btn',
+ 'class' => 'btn btn-warning ',
+ 'data-method' => 'post',
+ 'data-confirm' => Yii::t('usuario', 'This will disable two factor authentication. Are you sure?'),
+ ]
+ ) ?>
+
+
+
+
+
+ module->allowAccountDelete): ?>
+
+
+
= Yii::t('usuario', 'Delete account') ?>
+
+
+
+ = Yii::t('usuario', 'Once you delete your account, there is no going back') ?>.
+ = Yii::t('usuario', 'It will be deleted forever') ?>.
+ = Yii::t('usuario', 'Please be certain') ?>.
+
+
+ = Html::a(
+ Yii::t('usuario', 'Delete account'),
+ ['delete'],
+ [
+ 'class' => 'btn btn-danger',
+ 'data-method' => 'post',
+ 'data-confirm' => Yii::t('usuario', 'Are you sure? There is no going back'),
+ ]
+ ) ?>
+
diff --git a/src/User/resources/views/settings/two-factor-email.php b/src/User/resources/views/bootstrap3/settings/two-factor-email.php
similarity index 100%
rename from src/User/resources/views/settings/two-factor-email.php
rename to src/User/resources/views/bootstrap3/settings/two-factor-email.php
diff --git a/src/User/resources/views/settings/two-factor-sms.php b/src/User/resources/views/bootstrap3/settings/two-factor-sms.php
similarity index 100%
rename from src/User/resources/views/settings/two-factor-sms.php
rename to src/User/resources/views/bootstrap3/settings/two-factor-sms.php
diff --git a/src/User/resources/views/settings/two-factor.php b/src/User/resources/views/bootstrap3/settings/two-factor.php
similarity index 100%
rename from src/User/resources/views/settings/two-factor.php
rename to src/User/resources/views/bootstrap3/settings/two-factor.php
diff --git a/src/User/resources/views/bootstrap3/shared/_alert.php b/src/User/resources/views/bootstrap3/shared/_alert.php
new file mode 100644
index 00000000..500385f0
--- /dev/null
+++ b/src/User/resources/views/bootstrap3/shared/_alert.php
@@ -0,0 +1,33 @@
+
+ *
+ * For the full copyright and license information, please view
+ * the LICENSE file that was distributed with this source code.
+ */
+
+use yii\bootstrap\Alert;
+
+/** @var \Da\User\Module $module */
+
+?>
+
+enableFlashMessages): ?>
+
+
+endContent() ?>
diff --git a/src/User/resources/views/admin/_profile.php b/src/User/resources/views/bootstrap5/admin/_profile.php
similarity index 100%
rename from src/User/resources/views/admin/_profile.php
rename to src/User/resources/views/bootstrap5/admin/_profile.php
diff --git a/src/User/resources/views/admin/_session-history.php b/src/User/resources/views/bootstrap5/admin/_session-history.php
similarity index 100%
rename from src/User/resources/views/admin/_session-history.php
rename to src/User/resources/views/bootstrap5/admin/_session-history.php
diff --git a/src/User/resources/views/bootstrap5/admin/_user.php b/src/User/resources/views/bootstrap5/admin/_user.php
new file mode 100644
index 00000000..5e7303e5
--- /dev/null
+++ b/src/User/resources/views/bootstrap5/admin/_user.php
@@ -0,0 +1,20 @@
+
+ *
+ * For the full copyright and license information, please view
+ * the LICENSE file that was distributed with this source code.
+ */
+
+/**
+ * @var yii\widgets\ActiveForm $form
+ * @var \Da\User\Model\User $user
+ */
+?>
+
+= $form->field($user, 'email')->textInput(['maxlength' => 255]) ?>
+= $form->field($user, 'username')->textInput(['maxlength' => 255]) ?>
+= $form->field($user, 'password')->passwordInput() ?>
diff --git a/src/User/resources/views/admin/create.php b/src/User/resources/views/bootstrap5/admin/create.php
similarity index 100%
rename from src/User/resources/views/admin/create.php
rename to src/User/resources/views/bootstrap5/admin/create.php
diff --git a/src/User/resources/views/admin/index.php b/src/User/resources/views/bootstrap5/admin/index.php
similarity index 100%
rename from src/User/resources/views/admin/index.php
rename to src/User/resources/views/bootstrap5/admin/index.php
diff --git a/src/User/resources/views/admin/update.php b/src/User/resources/views/bootstrap5/admin/update.php
similarity index 100%
rename from src/User/resources/views/admin/update.php
rename to src/User/resources/views/bootstrap5/admin/update.php
diff --git a/src/User/resources/views/bootstrap5/mail/confirmation.php b/src/User/resources/views/bootstrap5/mail/confirmation.php
new file mode 100644
index 00000000..20eb842d
--- /dev/null
+++ b/src/User/resources/views/bootstrap5/mail/confirmation.php
@@ -0,0 +1,34 @@
+
+ *
+ * For the full copyright and license information, please view
+ * the LICENSE file that was distributed with this source code.
+ */
+
+use yii\helpers\Html;
+
+/**
+ * @var \Da\User\Model\User $user
+ * @var \Da\User\Model\Token $token
+ */
+?>
+
+ = Yii::t('usuario', 'Hello') ?>,
+
+
+ = Yii::t('usuario', 'Thank you for signing up on {0}', Yii::$app->name) ?>.
+ = Yii::t('usuario', 'In order to complete your registration, please click the link below') ?>.
+
+ = Yii::t('usuario', 'If you cannot click the link, please try pasting the text into your browser') ?>.
+
+
+ = 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]) ?>.
+
diff --git a/src/User/resources/views/bootstrap5/mail/layouts/html.php b/src/User/resources/views/bootstrap5/mail/layouts/html.php
new file mode 100644
index 00000000..96ba8066
--- /dev/null
+++ b/src/User/resources/views/bootstrap5/mail/layouts/html.php
@@ -0,0 +1,78 @@
+
+ *
+ * For the full copyright and license information, please view
+ * the LICENSE file that was distributed with this source code.
+ */
+
+/**
+ * @var \yii\web\View $this
+ * @var string $content
+ */
+?>
+beginPage() ?>
+
+
+
+
+
+ head() ?>
+
+
+
+
+
+endPage() ?>
diff --git a/src/User/resources/views/bootstrap5/mail/layouts/text.php b/src/User/resources/views/bootstrap5/mail/layouts/text.php
new file mode 100644
index 00000000..d5c064bd
--- /dev/null
+++ b/src/User/resources/views/bootstrap5/mail/layouts/text.php
@@ -0,0 +1,23 @@
+
+ *
+ * For the full copyright and license information, please view
+ * the LICENSE file that was distributed with this source code.
+ */
+
+/**
+/**
+ * @var \yii\web\View $this
+ * @var string $content
+ */
+?>
+
+beginPage() ?>
+beginBody() ?>
+= $content ?>
+endBody() ?>
+endPage() ?>
diff --git a/src/User/resources/views/bootstrap5/mail/reconfirmation.php b/src/User/resources/views/bootstrap5/mail/reconfirmation.php
new file mode 100644
index 00000000..f41e543c
--- /dev/null
+++ b/src/User/resources/views/bootstrap5/mail/reconfirmation.php
@@ -0,0 +1,37 @@
+
+ *
+ * For the full copyright and license information, please view
+ * the LICENSE file that was distributed with this source code.
+ */
+
+use yii\helpers\Html;
+
+/**
+ * @var \Da\User\Model\Token $token
+ */
+?>
+
+ = Yii::t('usuario', 'Hello') ?>,
+
+
+ = Yii::t(
+ 'usuario',
+ 'We have received a request to change the email address for your account on {0}',
+ Yii::$app->name
+ ) ?>.
+ = Yii::t('usuario', 'In order to complete your request, please click the link below') ?>.
+
+ = Yii::t('usuario', 'If you cannot click the link, please try pasting the text into your browser') ?>.
+
+
+ = Yii::t('usuario', 'If you did not make this request you can ignore this email') ?>.
+
diff --git a/src/User/resources/views/bootstrap5/mail/recovery.php b/src/User/resources/views/bootstrap5/mail/recovery.php
new file mode 100644
index 00000000..c06e2761
--- /dev/null
+++ b/src/User/resources/views/bootstrap5/mail/recovery.php
@@ -0,0 +1,38 @@
+
+ *
+ * For the full copyright and license information, please view
+ * the LICENSE file that was distributed with this source code.
+ */
+
+use yii\helpers\Html;
+
+/**
+ * @var \Da\User\Model\User $user
+ * @var \Da\User\Model\Token $token
+ */
+?>
+
+ = Yii::t('usuario', 'Hello') ?>,
+
+
+ = Yii::t(
+ 'usuario',
+ 'We have received a request to reset the password for your account on {0}',
+ Yii::$app->name
+ ) ?>.
+ = Yii::t('usuario', 'Please click the link below to complete your password reset') ?>.
+
+ = Yii::t('usuario', 'If you cannot click the link, please try pasting the text into your browser') ?>.
+
+
+ = Yii::t('usuario', 'If you did not make this request you can ignore this email') ?>.
+
diff --git a/src/User/resources/views/bootstrap5/mail/text/confirmation.php b/src/User/resources/views/bootstrap5/mail/text/confirmation.php
new file mode 100644
index 00000000..20a6928c
--- /dev/null
+++ b/src/User/resources/views/bootstrap5/mail/text/confirmation.php
@@ -0,0 +1,25 @@
+
+ *
+ * For the full copyright and license information, please view
+ * the LICENSE file that was distributed with this source code.
+ */
+
+/**
+ * @var \Da\User\Model\Token $token
+ */
+?>
+= Yii::t('usuario', 'Hello') ?>,
+
+= Yii::t('usuario', 'Thank you for signing up on {0}', Yii::$app->name) ?>.
+= 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') ?>.
+
+= 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]) ?>.
diff --git a/src/User/resources/views/bootstrap5/mail/text/reconfirmation.php b/src/User/resources/views/bootstrap5/mail/text/reconfirmation.php
new file mode 100644
index 00000000..808139c7
--- /dev/null
+++ b/src/User/resources/views/bootstrap5/mail/text/reconfirmation.php
@@ -0,0 +1,29 @@
+
+ *
+ * For the full copyright and license information, please view
+ * the LICENSE file that was distributed with this source code.
+ */
+
+/**
+ * @var \Da\User\Model\Token $token
+ */
+?>
+= Yii::t('usuario', 'Hello') ?>,
+
+= Yii::t(
+ 'usuario',
+ 'We have received a request to change the email address for your account on {0}',
+ Yii::$app->name
+) ?>.
+= Yii::t('usuario', 'In order to complete your request, please click the link below') ?>.
+
+= $token->url ?>
+
+= Yii::t('usuario', 'If you cannot click the link, please try pasting the text into your browser') ?>.
+
+= Yii::t('usuario', 'If you did not make this request you can ignore this email') ?>.
diff --git a/src/User/resources/views/bootstrap5/mail/text/recovery.php b/src/User/resources/views/bootstrap5/mail/text/recovery.php
new file mode 100644
index 00000000..08a7210d
--- /dev/null
+++ b/src/User/resources/views/bootstrap5/mail/text/recovery.php
@@ -0,0 +1,25 @@
+
+ *
+ * For the full copyright and license information, please view
+ * the LICENSE file that was distributed with this source code.
+ */
+
+/**
+ * @var \Da\User\Model\Token $token
+ */
+?>
+= Yii::t('usuario', 'Hello') ?>,
+
+= Yii::t('usuario', 'We have received a request to reset the password for your account on {0}', Yii::$app->name) ?>.
+= Yii::t('usuario', 'Please click the link below to complete your password reset') ?>.
+
+= $token->url ?>
+
+= Yii::t('usuario', 'If you cannot click the link, please try pasting the text into your browser') ?>.
+
+= Yii::t('usuario', 'If you did not make this request you can ignore this email') ?>.
diff --git a/src/User/resources/views/bootstrap5/mail/text/twofactorcode.php b/src/User/resources/views/bootstrap5/mail/text/twofactorcode.php
new file mode 100644
index 00000000..17255661
--- /dev/null
+++ b/src/User/resources/views/bootstrap5/mail/text/twofactorcode.php
@@ -0,0 +1,22 @@
+
+ *
+ * For the full copyright and license information, please view
+ * the LICENSE file that was distributed with this source code.
+ */
+
+/**
+ * @var String $code
+ */
+?>
+= Yii::t('usuario', 'Hello') ?>,
+
+= Yii::t('usuario', 'This is the code to insert to enable two factor authentication') ?>:
+
+= $code ?>
+
+= Yii::t('usuario', 'If you did not make this request you can ignore this email') ?>.
diff --git a/src/User/resources/views/bootstrap5/mail/text/welcome.php b/src/User/resources/views/bootstrap5/mail/text/welcome.php
new file mode 100644
index 00000000..0d4516b3
--- /dev/null
+++ b/src/User/resources/views/bootstrap5/mail/text/welcome.php
@@ -0,0 +1,40 @@
+
+ *
+ * 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) ?>.
+generatePasswords): ?>
+ = Yii::t('usuario', 'We have generated a password for you') ?>:
+ = $user->password ?>
+
+allowPasswordRecovery): ?>
+ = Yii::t('usuario', 'If you haven\'t received a password, you can reset it at') ?>:
+ = Url::to(['/user/recovery/request'], true) ?>
+
+
+
+ = 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') ?>.
+
+
+= 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]) ?>.
diff --git a/src/User/resources/views/bootstrap5/mail/twofactorcode.php b/src/User/resources/views/bootstrap5/mail/twofactorcode.php
new file mode 100644
index 00000000..210f84c2
--- /dev/null
+++ b/src/User/resources/views/bootstrap5/mail/twofactorcode.php
@@ -0,0 +1,30 @@
+
+ *
+ * For the full copyright and license information, please view
+ * the LICENSE file that was distributed with this source code.
+ */
+
+use yii\helpers\Html;
+
+/**
+ * @var String $code
+ * @var \Da\User\Model\Token $token
+ */
+?>
+
+ = Yii::t('usuario', 'Hello') ?>,
+
+
+ = Yii::t('usuario', 'This is the code to insert to enable two factor authentication') ?>:
+
+
+ = $code ?>
+
+
+ = Yii::t('usuario', 'If you did not make this request you can ignore this email') ?>.
+
diff --git a/src/User/resources/views/bootstrap5/mail/welcome.php b/src/User/resources/views/bootstrap5/mail/welcome.php
new file mode 100644
index 00000000..8efa10a9
--- /dev/null
+++ b/src/User/resources/views/bootstrap5/mail/welcome.php
@@ -0,0 +1,52 @@
+
+ *
+ * For the full copyright and license information, please view
+ * the LICENSE file that was distributed with this source code.
+ */
+
+use yii\helpers\Html;
+use yii\helpers\Url;
+
+/**
+ * @var \Da\User\Module $module
+ * @var \Da\User\Model\User $user
+ * @var \Da\User\Model\Token $token
+ * @var bool $showPassword
+ */
+
+?>
+
+ = Yii::t('usuario', 'Hello') ?>,
+
+
+
+ = Yii::t('usuario', 'Your account on {0} has been created', Yii::$app->name) ?>.
+ generatePasswords): ?>
+ = Yii::t('usuario', 'We have generated a password for you') ?>: = Html::encode($user->password) ?>
+
+ allowPasswordRecovery): ?>
+ = Yii::t('usuario', 'If you haven\'t received a password, you can reset it at') ?>: = Html::a(Html::encode(Url::to(['/user/recovery/request'], true)), Url::to(['/user/recovery/request'], true)) ?>
+
+
+
+
+
+
+ = Yii::t('usuario', 'In order to complete your registration, please click the link below') ?>.
+
+ = Yii::t('usuario', 'If you cannot click the link, please try pasting the text into your browser') ?>.
+
+
+
+
+ = 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]) ?>.
+
diff --git a/src/User/resources/views/permission/_form.php b/src/User/resources/views/bootstrap5/permission/_form.php
similarity index 100%
rename from src/User/resources/views/permission/_form.php
rename to src/User/resources/views/bootstrap5/permission/_form.php
diff --git a/src/User/resources/views/bootstrap5/permission/create.php b/src/User/resources/views/bootstrap5/permission/create.php
new file mode 100644
index 00000000..8cc02365
--- /dev/null
+++ b/src/User/resources/views/bootstrap5/permission/create.php
@@ -0,0 +1,34 @@
+
+ *
+ * For the full copyright and license information, please view
+ * the LICENSE file that was distributed with this source code.
+ */
+
+/**
+ * @var yii\web\View $this
+ * @var Da\User\Model\Permission $model
+ * @var string[] $unassignedItems
+ * @var \Da\User\Module $module
+ */
+
+$this->title = Yii::t('usuario', 'Create new permission');
+$this->params['breadcrumbs'][] = $this->title;
+
+?>
+
+beginContent($module->viewPath . '/shared/admin_layout.php') ?>
+
+= $this->render(
+ '/permission/_form',
+ [
+ 'model' => $model,
+ 'unassignedItems' => $unassignedItems,
+ ]
+) ?>
+
+endContent() ?>
diff --git a/src/User/resources/views/bootstrap5/permission/index.php b/src/User/resources/views/bootstrap5/permission/index.php
new file mode 100644
index 00000000..65142bf9
--- /dev/null
+++ b/src/User/resources/views/bootstrap5/permission/index.php
@@ -0,0 +1,70 @@
+
+ *
+ * For the full copyright and license information, please view
+ * the LICENSE file that was distributed with this source code.
+ */
+
+/**
+ * @var \yii\data\ActiveDataProvider $dataProvider
+ * @var yii\web\View $this
+ * @var \Da\User\Search\PermissionSearch $searchModel
+ * @var \Da\User\Module $module
+ */
+use yii\grid\ActionColumn;
+use yii\grid\GridView;
+use yii\helpers\Url;
+
+$this->title = Yii::t('usuario', 'Permissions');
+$this->params['breadcrumbs'][] = $this->title;
+
+?>
+
+beginContent($module->viewPath . '/shared/admin_layout.php') ?>
+
+
+endContent() ?>
diff --git a/src/User/resources/views/bootstrap5/rule/update.php b/src/User/resources/views/bootstrap5/rule/update.php
new file mode 100644
index 00000000..53e086a0
--- /dev/null
+++ b/src/User/resources/views/bootstrap5/rule/update.php
@@ -0,0 +1,34 @@
+
+ *
+ * For the full copyright and license information, please view
+ * the LICENSE file that was distributed with this source code.
+ */
+
+/**
+ * @var yii\web\View $this
+ * @var \Da\User\Model\Rule $model
+ * @var string[] $unassignedItems
+ * @var \Da\User\Module $module
+ */
+
+$this->title = Yii::t('usuario', 'Update rule');
+$this->params['breadcrumbs'][] = ['label' => Yii::t('usuario', 'Rules'), 'url' => ['index']];
+$this->params['breadcrumbs'][] = $this->title;
+
+?>
+
+beginContent($module->viewPath . '/shared/admin_layout.php') ?>
+
+= $this->render(
+ '/rule/_form',
+ [
+ 'model' => $model,
+ ]
+) ?>
+
+endContent() ?>
diff --git a/src/User/resources/views/security/confirm.php b/src/User/resources/views/bootstrap5/security/confirm.php
similarity index 100%
rename from src/User/resources/views/security/confirm.php
rename to src/User/resources/views/bootstrap5/security/confirm.php
diff --git a/src/User/resources/views/security/login.php b/src/User/resources/views/bootstrap5/security/login.php
similarity index 100%
rename from src/User/resources/views/security/login.php
rename to src/User/resources/views/bootstrap5/security/login.php
diff --git a/src/User/resources/views/settings/_menu.php b/src/User/resources/views/bootstrap5/settings/_menu.php
similarity index 100%
rename from src/User/resources/views/settings/_menu.php
rename to src/User/resources/views/bootstrap5/settings/_menu.php
diff --git a/src/User/resources/views/settings/account.php b/src/User/resources/views/bootstrap5/settings/account.php
similarity index 99%
rename from src/User/resources/views/settings/account.php
rename to src/User/resources/views/bootstrap5/settings/account.php
index b2fba0dd..a18e01a5 100644
--- a/src/User/resources/views/settings/account.php
+++ b/src/User/resources/views/bootstrap5/settings/account.php
@@ -141,7 +141,7 @@
break;
}
?>
- = Yii::t('usuario', 'Your two factor authentication method is based on "{0}".', [$method] ) .' ' . $message ?>
+ = Yii::t('usuario', 'Your two factor authentication method is based on "{0}".', [$method]) . ' account.php' . $message ?>
= Html::a(
diff --git a/src/User/resources/views/settings/gdpr-consent.php b/src/User/resources/views/bootstrap5/settings/gdpr-consent.php
similarity index 100%
rename from src/User/resources/views/settings/gdpr-consent.php
rename to src/User/resources/views/bootstrap5/settings/gdpr-consent.php
diff --git a/src/User/resources/views/settings/gdpr-delete.php b/src/User/resources/views/bootstrap5/settings/gdpr-delete.php
similarity index 100%
rename from src/User/resources/views/settings/gdpr-delete.php
rename to src/User/resources/views/bootstrap5/settings/gdpr-delete.php
diff --git a/src/User/resources/views/settings/networks.php b/src/User/resources/views/bootstrap5/settings/networks.php
similarity index 100%
rename from src/User/resources/views/settings/networks.php
rename to src/User/resources/views/bootstrap5/settings/networks.php
diff --git a/src/User/resources/views/settings/privacy.php b/src/User/resources/views/bootstrap5/settings/privacy.php
similarity index 100%
rename from src/User/resources/views/settings/privacy.php
rename to src/User/resources/views/bootstrap5/settings/privacy.php
diff --git a/src/User/resources/views/settings/profile.php b/src/User/resources/views/bootstrap5/settings/profile.php
similarity index 100%
rename from src/User/resources/views/settings/profile.php
rename to src/User/resources/views/bootstrap5/settings/profile.php
diff --git a/src/User/resources/views/settings/session-history.php b/src/User/resources/views/bootstrap5/settings/session-history.php
similarity index 100%
rename from src/User/resources/views/settings/session-history.php
rename to src/User/resources/views/bootstrap5/settings/session-history.php
diff --git a/src/User/resources/views/bootstrap5/settings/two-factor-email.php b/src/User/resources/views/bootstrap5/settings/two-factor-email.php
new file mode 100644
index 00000000..41c72e64
--- /dev/null
+++ b/src/User/resources/views/bootstrap5/settings/two-factor-email.php
@@ -0,0 +1,35 @@
+
+*
+* For the full copyright and license information, please view
+* the LICENSE file that was distributed with this source code.
+*/
+
+/** @var string $id */
+/** @var string $uri */
+?>
+
+
+
+ = Yii::t(
+ 'usuario',
+ 'Insert the code you received by email.'
+ ) ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/User/resources/views/bootstrap5/settings/two-factor-sms.php b/src/User/resources/views/bootstrap5/settings/two-factor-sms.php
new file mode 100644
index 00000000..ce033c9a
--- /dev/null
+++ b/src/User/resources/views/bootstrap5/settings/two-factor-sms.php
@@ -0,0 +1,68 @@
+
+*
+* For the full copyright and license information, please view
+* the LICENSE file that was distributed with this source code.
+*/
+
+/** @var string $id */
+/** @var string $uri */
+/** @var string $mobilePhone */
+?>
+
+
+
+
+ = Yii::t(
+ 'usuario',
+ 'Insert the mobile phone number where you want to receive text message in international format'
+ ) ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ = Yii::t(
+ 'usuario',
+ 'Insert the code you received by SMS.'
+ ) ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/User/resources/views/bootstrap5/settings/two-factor.php b/src/User/resources/views/bootstrap5/settings/two-factor.php
new file mode 100644
index 00000000..439b82e0
--- /dev/null
+++ b/src/User/resources/views/bootstrap5/settings/two-factor.php
@@ -0,0 +1,47 @@
+
+*
+* For the full copyright and license information, please view
+* the LICENSE file that was distributed with this source code.
+*/
+
+/** @var string $id */
+/** @var string $uri */
+/** @var Da\User\Model\User $user */
+?>
+
+
+
+ = Yii::t(
+ 'usuario',
+ 'Scan the QrCode with Google Authenticator App, then insert its temporary code on the box and submit.'
+ ) ?>
+
- = Yii::t('usuario', 'Thank you for signing up on {0}', Yii::$app->name) ?>.
- = Yii::t('usuario', 'In order to complete your registration, please click the link below') ?>.
-
- = Yii::t('usuario', 'If you cannot click the link, please try pasting the text into your browser') ?>.
-
-
- = 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]) ?>.
-
diff --git a/src/User/resources/views/bootstrap5/mail/layouts/html.php b/src/User/resources/views/bootstrap5/mail/layouts/html.php
deleted file mode 100644
index 96ba8066..00000000
--- a/src/User/resources/views/bootstrap5/mail/layouts/html.php
+++ /dev/null
@@ -1,78 +0,0 @@
-
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-/**
- * @var \yii\web\View $this
- * @var string $content
- */
-?>
-beginPage() ?>
-
-
-
-
-
- head() ?>
-
-
-
-
-
-endPage() ?>
diff --git a/src/User/resources/views/bootstrap5/mail/layouts/text.php b/src/User/resources/views/bootstrap5/mail/layouts/text.php
deleted file mode 100644
index d5c064bd..00000000
--- a/src/User/resources/views/bootstrap5/mail/layouts/text.php
+++ /dev/null
@@ -1,23 +0,0 @@
-
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-/**
-/**
- * @var \yii\web\View $this
- * @var string $content
- */
-?>
-
-beginPage() ?>
-beginBody() ?>
-= $content ?>
-endBody() ?>
-endPage() ?>
diff --git a/src/User/resources/views/bootstrap5/mail/reconfirmation.php b/src/User/resources/views/bootstrap5/mail/reconfirmation.php
deleted file mode 100644
index f41e543c..00000000
--- a/src/User/resources/views/bootstrap5/mail/reconfirmation.php
+++ /dev/null
@@ -1,37 +0,0 @@
-
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-use yii\helpers\Html;
-
-/**
- * @var \Da\User\Model\Token $token
- */
-?>
-
- = Yii::t('usuario', 'Hello') ?>,
-
-
- = Yii::t(
- 'usuario',
- 'We have received a request to change the email address for your account on {0}',
- Yii::$app->name
- ) ?>.
- = Yii::t('usuario', 'In order to complete your request, please click the link below') ?>.
-
- = Yii::t('usuario', 'If you cannot click the link, please try pasting the text into your browser') ?>.
-
-
- = Yii::t('usuario', 'If you did not make this request you can ignore this email') ?>.
-
diff --git a/src/User/resources/views/bootstrap5/mail/recovery.php b/src/User/resources/views/bootstrap5/mail/recovery.php
deleted file mode 100644
index c06e2761..00000000
--- a/src/User/resources/views/bootstrap5/mail/recovery.php
+++ /dev/null
@@ -1,38 +0,0 @@
-
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-use yii\helpers\Html;
-
-/**
- * @var \Da\User\Model\User $user
- * @var \Da\User\Model\Token $token
- */
-?>
-
- = Yii::t('usuario', 'Hello') ?>,
-
-
- = Yii::t(
- 'usuario',
- 'We have received a request to reset the password for your account on {0}',
- Yii::$app->name
- ) ?>.
- = Yii::t('usuario', 'Please click the link below to complete your password reset') ?>.
-
- = Yii::t('usuario', 'If you cannot click the link, please try pasting the text into your browser') ?>.
-
-
- = Yii::t('usuario', 'If you did not make this request you can ignore this email') ?>.
-
diff --git a/src/User/resources/views/bootstrap5/mail/text/confirmation.php b/src/User/resources/views/bootstrap5/mail/text/confirmation.php
deleted file mode 100644
index 20a6928c..00000000
--- a/src/User/resources/views/bootstrap5/mail/text/confirmation.php
+++ /dev/null
@@ -1,25 +0,0 @@
-
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-/**
- * @var \Da\User\Model\Token $token
- */
-?>
-= Yii::t('usuario', 'Hello') ?>,
-
-= Yii::t('usuario', 'Thank you for signing up on {0}', Yii::$app->name) ?>.
-= 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') ?>.
-
-= 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]) ?>.
diff --git a/src/User/resources/views/bootstrap5/mail/text/reconfirmation.php b/src/User/resources/views/bootstrap5/mail/text/reconfirmation.php
deleted file mode 100644
index 808139c7..00000000
--- a/src/User/resources/views/bootstrap5/mail/text/reconfirmation.php
+++ /dev/null
@@ -1,29 +0,0 @@
-
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-/**
- * @var \Da\User\Model\Token $token
- */
-?>
-= Yii::t('usuario', 'Hello') ?>,
-
-= Yii::t(
- 'usuario',
- 'We have received a request to change the email address for your account on {0}',
- Yii::$app->name
-) ?>.
-= Yii::t('usuario', 'In order to complete your request, please click the link below') ?>.
-
-= $token->url ?>
-
-= Yii::t('usuario', 'If you cannot click the link, please try pasting the text into your browser') ?>.
-
-= Yii::t('usuario', 'If you did not make this request you can ignore this email') ?>.
diff --git a/src/User/resources/views/bootstrap5/mail/text/recovery.php b/src/User/resources/views/bootstrap5/mail/text/recovery.php
deleted file mode 100644
index 08a7210d..00000000
--- a/src/User/resources/views/bootstrap5/mail/text/recovery.php
+++ /dev/null
@@ -1,25 +0,0 @@
-
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-/**
- * @var \Da\User\Model\Token $token
- */
-?>
-= Yii::t('usuario', 'Hello') ?>,
-
-= Yii::t('usuario', 'We have received a request to reset the password for your account on {0}', Yii::$app->name) ?>.
-= Yii::t('usuario', 'Please click the link below to complete your password reset') ?>.
-
-= $token->url ?>
-
-= Yii::t('usuario', 'If you cannot click the link, please try pasting the text into your browser') ?>.
-
-= Yii::t('usuario', 'If you did not make this request you can ignore this email') ?>.
diff --git a/src/User/resources/views/bootstrap5/mail/text/twofactorcode.php b/src/User/resources/views/bootstrap5/mail/text/twofactorcode.php
deleted file mode 100644
index 17255661..00000000
--- a/src/User/resources/views/bootstrap5/mail/text/twofactorcode.php
+++ /dev/null
@@ -1,22 +0,0 @@
-
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-/**
- * @var String $code
- */
-?>
-= Yii::t('usuario', 'Hello') ?>,
-
-= Yii::t('usuario', 'This is the code to insert to enable two factor authentication') ?>:
-
-= $code ?>
-
-= Yii::t('usuario', 'If you did not make this request you can ignore this email') ?>.
diff --git a/src/User/resources/views/bootstrap5/mail/text/welcome.php b/src/User/resources/views/bootstrap5/mail/text/welcome.php
deleted file mode 100644
index 0d4516b3..00000000
--- a/src/User/resources/views/bootstrap5/mail/text/welcome.php
+++ /dev/null
@@ -1,40 +0,0 @@
-
- *
- * 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) ?>.
-generatePasswords): ?>
- = Yii::t('usuario', 'We have generated a password for you') ?>:
- = $user->password ?>
-
-allowPasswordRecovery): ?>
- = Yii::t('usuario', 'If you haven\'t received a password, you can reset it at') ?>:
- = Url::to(['/user/recovery/request'], true) ?>
-
-
-
- = 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') ?>.
-
-
-= 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]) ?>.
diff --git a/src/User/resources/views/bootstrap5/mail/twofactorcode.php b/src/User/resources/views/bootstrap5/mail/twofactorcode.php
deleted file mode 100644
index 210f84c2..00000000
--- a/src/User/resources/views/bootstrap5/mail/twofactorcode.php
+++ /dev/null
@@ -1,30 +0,0 @@
-
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-use yii\helpers\Html;
-
-/**
- * @var String $code
- * @var \Da\User\Model\Token $token
- */
-?>
-
- = Yii::t('usuario', 'Hello') ?>,
-
-
- = Yii::t('usuario', 'This is the code to insert to enable two factor authentication') ?>:
-
-
- = $code ?>
-
-
- = Yii::t('usuario', 'If you did not make this request you can ignore this email') ?>.
-
diff --git a/src/User/resources/views/bootstrap5/mail/welcome.php b/src/User/resources/views/bootstrap5/mail/welcome.php
deleted file mode 100644
index 8efa10a9..00000000
--- a/src/User/resources/views/bootstrap5/mail/welcome.php
+++ /dev/null
@@ -1,52 +0,0 @@
-
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-use yii\helpers\Html;
-use yii\helpers\Url;
-
-/**
- * @var \Da\User\Module $module
- * @var \Da\User\Model\User $user
- * @var \Da\User\Model\Token $token
- * @var bool $showPassword
- */
-
-?>
-
- = Yii::t('usuario', 'Hello') ?>,
-
-
-
- = Yii::t('usuario', 'Your account on {0} has been created', Yii::$app->name) ?>.
- generatePasswords): ?>
- = Yii::t('usuario', 'We have generated a password for you') ?>: = Html::encode($user->password) ?>
-
- allowPasswordRecovery): ?>
- = Yii::t('usuario', 'If you haven\'t received a password, you can reset it at') ?>: = Html::a(Html::encode(Url::to(['/user/recovery/request'], true)), Url::to(['/user/recovery/request'], true)) ?>
-
-
-
-
-
-
- = Yii::t('usuario', 'In order to complete your registration, please click the link below') ?>.
-
- = Yii::t('usuario', 'If you cannot click the link, please try pasting the text into your browser') ?>.
-
-
-
-
- = 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]) ?>.
-
diff --git a/src/User/resources/views/bootstrap3/mail/confirmation.php b/src/User/resources/views/mail/confirmation.php
similarity index 100%
rename from src/User/resources/views/bootstrap3/mail/confirmation.php
rename to src/User/resources/views/mail/confirmation.php
diff --git a/src/User/resources/views/bootstrap3/mail/layouts/html.php b/src/User/resources/views/mail/layouts/html.php
similarity index 100%
rename from src/User/resources/views/bootstrap3/mail/layouts/html.php
rename to src/User/resources/views/mail/layouts/html.php
diff --git a/src/User/resources/views/bootstrap3/mail/layouts/text.php b/src/User/resources/views/mail/layouts/text.php
similarity index 100%
rename from src/User/resources/views/bootstrap3/mail/layouts/text.php
rename to src/User/resources/views/mail/layouts/text.php
diff --git a/src/User/resources/views/bootstrap3/mail/reconfirmation.php b/src/User/resources/views/mail/reconfirmation.php
similarity index 100%
rename from src/User/resources/views/bootstrap3/mail/reconfirmation.php
rename to src/User/resources/views/mail/reconfirmation.php
diff --git a/src/User/resources/views/bootstrap3/mail/recovery.php b/src/User/resources/views/mail/recovery.php
similarity index 100%
rename from src/User/resources/views/bootstrap3/mail/recovery.php
rename to src/User/resources/views/mail/recovery.php
diff --git a/src/User/resources/views/bootstrap3/mail/text/confirmation.php b/src/User/resources/views/mail/text/confirmation.php
similarity index 100%
rename from src/User/resources/views/bootstrap3/mail/text/confirmation.php
rename to src/User/resources/views/mail/text/confirmation.php
diff --git a/src/User/resources/views/bootstrap3/mail/text/reconfirmation.php b/src/User/resources/views/mail/text/reconfirmation.php
similarity index 100%
rename from src/User/resources/views/bootstrap3/mail/text/reconfirmation.php
rename to src/User/resources/views/mail/text/reconfirmation.php
diff --git a/src/User/resources/views/bootstrap3/mail/text/recovery.php b/src/User/resources/views/mail/text/recovery.php
similarity index 100%
rename from src/User/resources/views/bootstrap3/mail/text/recovery.php
rename to src/User/resources/views/mail/text/recovery.php
diff --git a/src/User/resources/views/bootstrap3/mail/text/twofactorcode.php b/src/User/resources/views/mail/text/twofactorcode.php
similarity index 100%
rename from src/User/resources/views/bootstrap3/mail/text/twofactorcode.php
rename to src/User/resources/views/mail/text/twofactorcode.php
diff --git a/src/User/resources/views/bootstrap3/mail/text/welcome.php b/src/User/resources/views/mail/text/welcome.php
similarity index 100%
rename from src/User/resources/views/bootstrap3/mail/text/welcome.php
rename to src/User/resources/views/mail/text/welcome.php
diff --git a/src/User/resources/views/bootstrap3/mail/twofactorcode.php b/src/User/resources/views/mail/twofactorcode.php
similarity index 100%
rename from src/User/resources/views/bootstrap3/mail/twofactorcode.php
rename to src/User/resources/views/mail/twofactorcode.php
diff --git a/src/User/resources/views/bootstrap3/mail/welcome.php b/src/User/resources/views/mail/welcome.php
similarity index 100%
rename from src/User/resources/views/bootstrap3/mail/welcome.php
rename to src/User/resources/views/mail/welcome.php
From fa8959cb8b207de55aa34d991592668c657ae36a Mon Sep 17 00:00:00 2001
From: tonis
Date: Fri, 16 Feb 2024 11:52:07 +0200
Subject: [PATCH 07/11] update condig, php 8.2
---
src/User/resources/views/bootstrap5/settings/account.php | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/User/resources/views/bootstrap5/settings/account.php b/src/User/resources/views/bootstrap5/settings/account.php
index a18e01a5..86b687df 100644
--- a/src/User/resources/views/bootstrap5/settings/account.php
+++ b/src/User/resources/views/bootstrap5/settings/account.php
@@ -14,7 +14,6 @@
use yii\helpers\Url;
use yii\bootstrap5\ActiveForm;
use dmstr\widgets\Alert;
-
/**
* @var yii\web\View $this
* @var yii\widgets\ActiveForm $form
@@ -79,7 +78,7 @@
enableTwoFactorAuthentication): ?>
-