diff options
| author | Jams H Thompson <jht001@users.sourceforge.net> | 2006-08-17 06:28:44 +0000 |
|---|---|---|
| committer | Jams H Thompson <jht001@users.sourceforge.net> | 2006-08-17 06:28:44 +0000 |
| commit | a8d4c166109e211c9b1d3b277ddfc0108d466f63 (patch) | |
| tree | 8a5c3cbc3c1a2193950c469a54255d800a5fbc21 /templates | |
| parent | 964e15325884ed7b3d9ff9217a9c11a36c017200 (diff) | |
| download | users-a8d4c166109e211c9b1d3b277ddfc0108d466f63.tar.gz users-a8d4c166109e211c9b1d3b277ddfc0108d466f63.tar.bz2 users-a8d4c166109e211c9b1d3b277ddfc0108d466f63.zip | |
Fix several user registration issues
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/change_password.tpl | 7 | ||||
| -rw-r--r-- | templates/register.tpl | 4 |
2 files changed, 8 insertions, 3 deletions
diff --git a/templates/change_password.tpl b/templates/change_password.tpl index 2678643..c91e41b 100644 --- a/templates/change_password.tpl +++ b/templates/change_password.tpl @@ -1,12 +1,13 @@ <h1>{tr}Change password enforced{/tr}</h1> <form method="post" action="{$smarty.const.USERS_PKG_URL}change_password.php"> +<input type="hidden" name="login" value="{$userInfo.login}" /> <table class="panel"> <tr> <td>{tr}User{/tr}:</td> - <td><input type="text" name="login" value="{$userInfo.login}" /></td> + <td><b>{$userInfo.login}</b></td> </tr> -{if $userInfo.password} - <input type="hidden" name="oldpass" value="{$userInfo.password|escape}" /></td> +{if $userInfo.user_password} + <input type="hidden" name="oldpass" value="{$userInfo.user_password|escape}" /></td> {else} <tr> <td>{tr}Old password{/tr}:</td> diff --git a/templates/register.tpl b/templates/register.tpl index 7afa631..20cf11b 100644 --- a/templates/register.tpl +++ b/templates/register.tpl @@ -6,6 +6,7 @@ {if $showmsg eq 'y'}<h2>{$msg}</h2>{/if} </div> +{if $showmsg ne 'y'} <div class="body"> <p>{tr}If you are already registered, please{/tr} <a href="{$smarty.const.USERS_PKG_URL}login.php">{tr}login{/tr}</a></p> {form enctype="multipart/form-data" legend="Please fill in the following details"} @@ -233,6 +234,9 @@ {/if} {/form} </div><!-- end .body --> + +{/if} + </div><!-- end .login --> {/strip} |
