{include file="header.tpl"}

     <!-- .....:::::: Start Breadcrumb Section :::::.... -->
        <div class="breadcrumb-section">
            <div class="breadcrumb-wrapper">
                <div class="image"><img src="assets/images/background/breadcrumb.png" alt=""></div>
                <div class="container">
                    <div class="row">
                        <div class="col-12">
                            <div class="content">
                                <h2 class="title">Recover Email</h2>
                                <ol class="breadcrumb-link">
                                    <li><a href="?a=home">Home</a></li>
                                    <li class="active" aria-current="page">Forgot Password</li>
                                </ol>
                            </div>
                        </div>
                    </div>
                </div>            
            </div>
        </div>
        <!-- .....:::::: End Breadcrumb Section :::::.... -->

    <div class="container">
        
{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 $errors.turing_image}
Invalid turing image<br><br>
{/if}


{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 class="form-group contact-form" name=forgotform onsubmit="return checkform();">
<input type=hidden name=a value="forgot_password">
<input type=hidden name=action value="forgot_password">
<div class="row">
    <div class="col-md-2"></div>
    <div class="col-lg-7">
        <div class="col-md-12 form-group">
            <br><br>
        <h3>Forgot your password:</h3><br>
        </div>
<div class="col-md-12 mb-6 form-group-single-item form-group-single-item-inner-bg">
  <input type=text name='email' value="{$frm.email|escape:htmlall}" placeholder="E-Mail"> 
</div>
{include file="captcha.tpl" action="forgot_password"}
<div class="col-md-12 mb-6">
<button type="submit" class="btn btn-lg btn-primary">Forgot</button> 
</div>
</div>
<div class="col-md-3"></div>
</div>
</form>
<br><br>
{/if}

</div>
{include file="footer.tpl"}
