1
0
This repository has been archived on 2021-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
gallery3-contrib/modules/register/views/register_welcome_message.html.php
Tim Almdal 7891bdfff5 Fix for ticket #1107.
1) Change the link on the register welcome dialog to use the change password form.
   thanks to TAZattitude for pointing the way.
2) Address the issue that default change password form, expects the user to know
   the old password.  As this is the first login, they might not write down the
   generated password, so when they get to form, they are screwed, as they can't
   change the password w/o the old one.  So we register will generate a clone
   of the password change form, where the old password is supplied as a hidden
   field.
2010-04-01 07:38:06 -07:00

37 lines
1.4 KiB
PHP

<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="g-welcome-message">
<h1 style="display: none">
<?= t("Welcome to Gallery 3!") ?>
</h1>
<p>
<h2>
<?= t("Welcome to Gallery3") ?>
</h2>
</p>
<p>
<?= t("First things first. You're logged in to the <b>%user_name</b> account. We have generated a password for you (%password). You should change your password to something that you'll remember.", array("user_name" => $user->name, "password" => $password)) ?>
</p>
<p>
<a href="<?= url::site("register/change_password/{$user->id}/$password") ?>"
title="<?= t("Edit your profile")->for_html_attr() ?>"
id="g-after-install-change-password-link"
class="g-button ui-state-default ui-corners-all">
<?= t("Change password now") ?>
</a>
<script type="text/javascript">
$("#g-after-install-change-password-link").gallery_dialog();
</script>
</p>
<p>
<?= t("Want to learn more? The <a href=\"%url\">Gallery website</a> has news and information about the Gallery project and community.", array("url" => "http://gallery.menalto.com")) ?>
</p>
<p>
<?= t("Having problems? There's lots of information in our <a href=\"%codex_url\">documentation site</a> or you can <a href=\"%forum_url\">ask for help in the forums!</a>", array("codex_url" => "http://codex.gallery2.org/Main_Page", "forum_url" => "http://gallery.menalto.com/forum")) ?>
</p>
</div>