Jump to content

problem with login page


vpnfreeway

Recommended Posts

Hi i'm on last whmcs and have some fix on my template :

 

 

https://www.vpnfreeway.net/eclients/clientarea.php in here have some fix on template please help...

this is login.tpl :

<div class="logincontainer{if $linkableProviders} with-social{/if}">

{include file="$template/includes/pageheader.tpl" title=$LANG.login desc="{$LANG.restrictedpage}"}

{if $incorrect}
    {include file="$template/includes/alert.tpl" type="error" msg=$LANG.loginincorrect textcenter=true}
{elseif $verificationId && empty($transientDataName)}
    {include file="$template/includes/alert.tpl" type="error" msg=$LANG.verificationKeyExpired textcenter=true}
{elseif $ssoredirect}
    {include file="$template/includes/alert.tpl" type="info" msg=$LANG.sso.redirectafterlogin textcenter=true}
{/if}

<div class="providerLinkingFeedback"></div>

<div class="row">
    <div class="col-sm-{if $linkableProviders}7{else}12{/if}">

        <form method="post" action="{$systemurl}dologin.php" class="login-form" role="form">
            <div class="form-group">
                <label for="inputEmail">{$LANG.clientareaemail}</label>
                <input type="email" name="username" class="form-control" id="inputEmail" placeholder="{$LANG.enteremail}" autofocus>
            </div>

            <div class="form-group">
                <label for="inputPassword">{$LANG.clientareapassword}</label>
                <input type="password" name="password" class="form-control" id="inputPassword" placeholder="{$LANG.clientareapassword}" autocomplete="off" >
            </div>

            <div class="checkbox">
                <label>
                    <input type="checkbox" name="rememberme" /> {$LANG.loginrememberme}
                </label>
            </div>

            <div align="center">
                <input id="login" type="submit" class="btn btn-primary" value="{$LANG.loginbutton}" /> <a href="pwreset.php" class="btn btn-default">{$LANG.forgotpw}</a>
            </div>
        </form>

    </div>
    <div class="col-sm-5{if !$linkableProviders} hidden{/if}">
        {include file="$template/includes/linkedaccounts.tpl" linkContext="login" customFeedback=true}
    </div>
</div>

</div>

this is logintwofa.tpl

<div class="inner-page">
<div class="container">
<ul class="inner-page-navi">

            <li><a href="index.php"> {$LANG.accueil} </a>  </li>
            <li> > </li>
            <li><a href="clientarea.php"> {$LANG.login} </a> </li>
        </ul>


</div>
 <div class="login-status">
            <div class="container">

{$LANG.twofactorauth} 
</div>
</div>
</div>
</div>
<br><br>

<div class="halfwidthcontainer">

{if $newbackupcode}
<div class="alert alert-success textcenter">
<p>{$LANG.twofabackupcodereset}</p>
</div>
{elseif $incorrect}
<div class="alert alert-error textcenter">
<p>{$LANG.twofa2ndfactorincorrect}</p>
</div>
{elseif $error}
<div class="alert alert-error textcenter">
<p>{$error}</p>
</div>
{else}
<div class="alert alert-warning textcenter">
<p>{$LANG.twofa2ndfactorreq}</p>
</div>
{/if}

<form method="post" action="{$systemsslurl}dologin.php" class="form-stacked" id="frmlogin">

{if $newbackupcode}

<input type="hidden" name="newbackupcode" value="1" />
<h2 align="center">{$LANG.twofanewbackupcodeis}</h2>
<div class="alert alert-warning textcenter twofabackupcode">
<p>{$newbackupcode}</p>
</div>
<p align="center">{$LANG.twofabackupcodeexpl}</p>
<br />
<p align="center"><input type="submit" value="{$LANG.continue} " class="btn" /></p>

{elseif $backupcode}

<br />

<input type="hidden" name="backupcode" value="1" />
<p align="center"><input type="text" name="code" size="25" /> <input type="submit" value="Login " class="btn" /></p>
<p align="center"></p>

{else}

<br />

{$challenge}

{/if}

<br />

{if !$newbackupcode}
<div class="alert alert-block alert-info textcenter">
{if $backupcode}
{$LANG.twofabackupcodelogin}
{else}
{$LANG.twofacantaccess2ndfactor} <a href="clientarea.php?backupcode=1">{$LANG.twofaloginusingbackupcode}</a></p>
{/if}
</div>
{/if}

</form>

<script type="text/javascript">
$("#frmlogin input:text:visible:first").focus();
</script>

<br /><br /><br /><br />

</div>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated