{* * $Revision: 1.31 $ * 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. *}

{g->text text="Login to your account"}

{if $user.isGuest}
{if isset($status.passwordRecovered)}

{g->text text="Your password has been recovered, please login."}

{/if}

{g->text text="Username"}

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

{g->text text="Password"}

{if isset($form.error.password.missing)}
{g->text text="You must enter a password"}
{/if} {if isset($form.error.invalidPassword)}
{g->text text="Your login information is incorrect. Please try again."}
{/if}
{* Include our ValidationPlugins *} {g->callback type="core.LoadValidationPlugins" key="core.UserLogin."|cat:$form.username} {foreach from=$block.core.ValidationPlugins item=plugin} {include file="gallery:`$plugin.file`" l10Domain=$plugin.l10Domain} {/foreach}
{capture name="recoverUrl"} {g->url arg1="view=core.UserAdmin" arg2="subView=core.UserRecoverPassword" arg3="return=1"} {/capture} {g->text text="Lost or forgotten passwords can be retrieved using the recover password page" arg1=$smarty.capture.recoverUrl}
{else} {* User is already logged in *}

{g->text text="Welcome, %s!" arg1=$user.fullName|default:$user.userName}

{/if}