diff options
Diffstat (limited to 'modules/user/views')
| -rw-r--r-- | modules/user/views/admin_users.html.php | 2 | ||||
| -rw-r--r-- | modules/user/views/reset_password.html.php | 17 | 
2 files changed, 18 insertions, 1 deletions
diff --git a/modules/user/views/admin_users.html.php b/modules/user/views/admin_users.html.php index 7c54d93d..ee8d413c 100644 --- a/modules/user/views/admin_users.html.php +++ b/modules/user/views/admin_users.html.php @@ -91,7 +91,7 @@                    open_text="<?= t("close") ?>"                    class="g-panel-link g-button ui-state-default ui-corner-all ui-icon-left">                  <span class="ui-icon ui-icon-pencil"></span><span class="g-button-text"><?= t("edit") ?></span></a> -              <? if (user::active()->id != $user->id && !$user->guest): ?> +              <? if (Session::active_user()->id != $user->id && !$user->guest): ?>                <a href="<?= url::site("admin/users/delete_user_form/$user->id") ?>"                    class="g-dialog-link g-button ui-state-default ui-corner-all ui-icon-left">                  <span class="ui-icon ui-icon-trash"></span><?= t("delete") ?></a> diff --git a/modules/user/views/reset_password.html.php b/modules/user/views/reset_password.html.php new file mode 100644 index 00000000..92ca4917 --- /dev/null +++ b/modules/user/views/reset_password.html.php @@ -0,0 +1,17 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<html> +  <head> +    <title><?= t("Password Reset Request") ?> </title> +  </head> +  <body> +    <h2><?= t("Password Reset Request") ?> </h2> +    <p> +      <?= t("Hello, %name,", array("name" => $user->full_name ? $user->full_name : $user->name)) ?> +    </p> +    <p> +  <?= t("We received a request to reset your password for <a href=\"%site_url\">%site_url</a>.  If you made this request, you can confirm it by <a href=\"%confirm_url\">clicking this link</a>.  If you didn't request this password reset, it's ok to ignore this mail.", +        array("site_url" => html::mark_clean(url::base(false, "http")), +              "confirm_url" => $confirm_url)) ?> +    </p> +  </body> +</html>  | 
