{* * $Revision: 1.5 $ * If you want to customize this file, do not edit it directly since future upgrades * may overwrite it. Instead, copy it into a new directory called "local" and edit that * version. Gallery will look for that file first and use it if it exists. *} {capture name="loginDescriptionDownload"}
{g->text text="In order to proceed with the password reset, we have to verify that you are who you claim. The best way to be sure is to ask you to make a tiny change in the Gallery directory which will prove that you have the right permissions. So, we're going to ask that you create a new text file called %s in your gallery2 directory. It must contain the following randomly generated characters:" arg1="login.txt"}

{g->text text="%s" arg1=$UserRecoverPasswordAdmin.authString}

{capture name="downloadUrl"} {/capture} {g->text text="As a convenience to you, we've prepared a %scorrect version of login.txt%s for you. Download that and copy it into your install directory and you're all set." arg1=$smarty.capture.downloadUrl arg2=""}
{g->text text="Once you've uploaded the file, click refresh to continue."}
{/capture}

{g->text text="Emergency Administrator Password Reset"}

{g->text text="This page can be used by a system administrator to securely reset the password on any account."}
{if isset($UserRecoverPasswordAdmin.status.authString.correct)}

{g->text text="Authorization Confirmed"}

{g->text text="Your authorization has been confirmed. Please enter your new password below. After setting your new password you will be taken to the login page."}

{g->text text="Recover Password for Username"}

{if isset($form.error.userName.missing)}
{g->text text="You must enter a username to recover the password for."}
{/if} {if isset($form.error.userName.incorrect)}
{g->text text="The username you entered does not exist."}
{/if}

{g->text text="New Password"}

{if isset($form.error.password.missing)}
{g->text text="You must enter a new password"}
{/if}

{g->text text="Verify New Password"}

{if isset($form.error.password.mismatch)}
{g->text text="The passwords you entered did not match"}
{/if} {elseif isset($UserRecoverPasswordAdmin.error.authString.incorrect) || isset($error.authString.incorrect)}
{if !isset($UserRecoverPasswordAdmin.status.firstLoad)}

{g->text text="Authorization Incorrect"}

{else}

{g->text text="Recovery Instructions"}

{/if} {$smarty.capture.loginDescriptionDownload}
{elseif isset($UserRecoverPasswordAdmin.error.authFile.missing)}

{g->text text="AuthFile Missing"}

{$smarty.capture.loginDescriptionDownload}
{elseif isset($UserRecoverPasswordAdmin.error.authFile.unreadable)}

{g->text text="AuthFile Unreadable"}

{g->text text="Your %s file is not readable. Please give Gallery read permissions on the file." arg1="login.txt"}

{/if}
{if isset($UserRecoverPasswordAdmin.status.authString.correct)} {else} {/if}