{include file="logo.tpl"}
 
	<div class="sub-page">
		<div class="container"><div class="form-box">
    <h1 class="text-center">Password recovery</h1>
	
	{literal}
<script language=javascript>
function checkform() {
  if (document.forgotform.email.value == '') {
    alert("Please type your username or email!");
    document.forgotform.email.focus();
    return false;
  }
  return true;
}
</script>
{/literal}


{if $found_records == 2}
Your accound was found. Please check your e-mail address and follow confirm URL to reset your password.
<br><br>
{else}

{if $found_records == 0}
No accounts found for provided info.
<br><br>
{elseif $found_records == 1}
Request was confirmed. Login and password was sent to your email address.
<br><br>
{/if}


<form method=post name=forgotform onsubmit="return checkform();" class="mb-4" id="login-form">
<input type=hidden name=a value="forgot_password">
<input type=hidden name=action value="forgot_password">

 

        <label><span class="icon-envelope-shape"></span> Email</label>
        <input type="text"  data-validate="email" placeholder="example@gmail.com" name='email' value="{$frm.email|escape:htmlall}" autocomplete="off">

{include file="captcha.tpl" action="forgot_password"}

        <button class="btn-fill w-100" type="submit">Recover Password</button>
    </form>
	{/if}
    <a href="/?a=login">I remembered the password</a>
    <div class="progress-request"></div>
</div>
</div>
</div>
</div>
{include file="footer2.tpl"}