This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/templates/yuuno/main/authenticate.twig

180 lines
10 KiB
Twig
Raw Normal View History

2016-01-04 20:14:09 +00:00
{% extends 'global/master.twig' %}
{% block title %}Authentication{% endblock %}
{% block content %}
2015-08-20 23:17:27 +00:00
{% if sakura.lockAuth %}
<h1 class="stylised" style="line-height: 1.8em; text-align: center;">Authentication is currently disallowed, try again later.</h1>
2015-04-24 19:31:09 +00:00
{% else %}
2015-04-06 21:23:54 +00:00
<div class="loginPage">
<div class="loginForm">
<div class="head">
2015-08-20 23:17:27 +00:00
Login to {{ sakura.siteName }}
2015-04-06 21:23:54 +00:00
</div>
<form method="post" action="{{ urls.format('AUTH_ACTION') }}" id="loginForm">
2015-04-06 21:23:54 +00:00
<input type="hidden" name="redirect" value="{{ auth.redirect }}" />
<input type="hidden" name="session" value="{{ php.sessionid }}" />
<input type="hidden" name="time" value="{{ php.time }}" />
<input type="hidden" name="mode" value="login" />
<div class="leftAlign">
<label for="loginUserName">Username:</label>
</div>
<div class="centreAlign">
<input class="inputStyling" type="text" id="loginUserName" name="username" autofocus="true" />
</div>
<div class="leftAlign">
<label for="loginPassword">Password:</label>
</div>
<div class="centreAlign">
<input class="inputStyling" type="password" id="loginPassword" name="password" />
</div>
<div class="subLinks centreAlign">
<input class="inputStyling" name="remember" type="checkbox" class="ignore-css" id="loginRemember" /><label for="loginRemember">Remember Me</a>
</div>
<div class="centreAlign">
<input class="inputStyling" type="submit" id="loginButton" name="submit" value="Login" />
</div>
</form>
</div>
<div class="passwordForm">
<div class="head">
Lost Password
</div>
<form method="post" action="{{ urls.format('AUTH_ACTION') }}" id="passwordForm">
2015-04-06 21:23:54 +00:00
<input type="hidden" name="mode" value="forgotpassword" />
<input type="hidden" name="session" value="{{ php.sessionid }}" />
<input type="hidden" name="time" value="{{ php.time }}" />
<div class="leftAlign">
<label for="forgotUserName">Username:</label>
</div>
<div class="centreAlign">
<input class="inputStyling" type="text" id="forgotUserName" name="username" />
</div>
<div class="leftAlign">
<label for="forgotEmail">E-mail:</label>
</div>
<div class="centreAlign">
<input class="inputStyling" type="text" id="forgotEmail" name="email" />
</div>
<div class="centreAlign">
2015-04-27 15:13:52 +00:00
<input class="inputStyling" type="submit" name="submit" value="Request Password" id="requestPassBtn" />
2015-04-06 21:23:54 +00:00
</div>
<div class="subLinks centreAlign">
Contact us if you lost access to your e-mail address!
2015-04-06 21:23:54 +00:00
</div>
</form>
</div>
2015-04-19 13:00:32 +00:00
<div class="registerForm">
<div class="head">
2015-08-20 23:17:27 +00:00
Register on {{ sakura.siteName }}
2015-04-06 21:23:54 +00:00
</div>
2015-08-20 23:17:27 +00:00
{% if not sakura.disableRegistration %}
<form id="registerForm" method="post" action="{{ urls.format('AUTH_ACTION') }}" style="display:{% if auth.blockRegister.do %}none{% else %}block{% endif %};">
2015-04-19 13:00:32 +00:00
<input type="hidden" name="mode" value="register" />
<input type="hidden" name="session" value="{{ php.sessionid }}" />
<input type="hidden" name="time" value="{{ php.time }}" />
<div class="leftAlign">
<label for="registerUserName">Username:</label>
</div>
<div class="centreAlign">
2015-05-25 18:18:56 +00:00
<input class="inputStyling" type="text" id="registerUserName" name="username" onkeyup="registerVarCheck(this.id, 'username');" placeholder="Any character" />
2015-04-19 13:00:32 +00:00
</div>
<div class="leftAlign">
<label for="registerEmail">E-mail:</label>
</div>
<div class="centreAlign">
2015-05-25 18:18:56 +00:00
<input class="inputStyling" type="text" id="registerEmail" name="email" onkeyup="registerVarCheck(this.id, 'email');" placeholder="Used for e.g. password retrieval" />
2015-04-19 13:00:32 +00:00
</div>
<div class="leftAlign">
<label for="registerPassword">Password:</label>
</div>
<div class="centreAlign">
2015-05-25 18:18:56 +00:00
<input class="inputStyling" type="password" id="registerPassword" name="password" onkeyup="registerVarCheck(this.id, 'password');" placeholder="Using special characters is recommended" />
2015-04-19 13:00:32 +00:00
</div>
<div class="leftAlign">
<label for="registerConfirmPassword">Confirm Password:</label>
</div>
<div class="centreAlign">
2015-05-25 18:18:56 +00:00
<input class="inputStyling" type="password" id="registerConfirmPassword" name="confirmpassword" onkeyup="registerVarCheck(this.id, 'confirmpw', 'registerPassword');" placeholder="Just to make sure" />
2015-04-19 13:00:32 +00:00
</div>
2015-08-20 23:17:27 +00:00
{% if sakura.requireRegCodes %}
<div class="leftAlign">
<label for="registerCode">Registration Code:</label>
</div>
<div class="centreAlign">
<input class="inputStyling" type="text" id="registerCode" name="registercode" placeholder="Ask another member for one" />
</div>
{% endif %}
{% if sakura.recaptchaEnabled %}
<div class="leftAlign">
<label for="recaptcha_response_field">Verification:</label>
</div>
<div class="centreAlign">
2016-01-04 20:14:09 +00:00
{% include 'elements/captcha.twig' %}
</div>
{% endif %}
2015-04-19 13:00:32 +00:00
<div class="subLinks centreAlign">
<input class="inputStyling" name="tos" type="checkbox" class="ignore-css" id="registerToS" /><label for="registerToS">I agree to the <a class="default" href="{{ urls.format('INFO_PAGE', ['terms']) }}" target="_blank">Terms of Service</a>.
2015-04-19 13:00:32 +00:00
</div>
<div class="centreAlign">
2015-04-27 15:13:52 +00:00
<input class="inputStyling" type="submit" name="submit" value="Register" id="registerAccBtn" />
2015-04-19 13:00:32 +00:00
</div>
</form>
{% if auth.blockRegister.do %}
<div class="registerForm" id="registerWarn" style="display: block;">
<div class="centreAlign">
<div class="fa fa-warning fa-5x" style="display: block; margin: 10px 0 0;"></div>
<h1>Are you {{ auth.blockRegister.username }}?</h1>
<p>Making more than one account is not permitted.</p>
<p>If you lost your password please use the form on the bottom left but if you don't already have an account you can go ahead and click the link below to show the registration form this check is based on your IP so in some cases someone may have registered/used the site on this IP already.</p>
<p>If we find out that you already have an account we may question you about it, if you can give a good reason we'll let it slide otherwise we may issue a temporary ban.</p>
</div>
<div class="subLinks centreAlign">
<a href="javascript:void(0);" class="default" onclick="document.getElementById('registerWarn').style.display='none'; document.getElementById('registerForm').style.display='block';">Register anyway</a>.
2015-04-19 13:00:32 +00:00
</div>
2015-04-06 21:23:54 +00:00
</div>
2015-04-19 13:00:32 +00:00
{% endif %}
{% else %}
<div class="registerForm" id="registerWarn" style="display: block;">
<div class="centreAlign">
<div class="fa fa-remove fa-5x" style="display: block; margin: 10px 0 0;"></div>
<h1>Registration is disabled.</h1>
<p>Please try again later.</p>
</div>
</div>
{% endif %}
2015-04-19 13:00:32 +00:00
</div>
2016-01-09 21:57:54 +00:00
{% if sakura.requireActivation %}
<div class="resendForm">
2015-04-19 13:00:32 +00:00
<div class="head">
Resend Activation E-mail
2015-04-06 21:23:54 +00:00
</div>
<form method="post" action="{{ urls.format('AUTH_ACTION') }}" id="resendForm">
2015-04-19 13:00:32 +00:00
<input type="hidden" name="mode" value="resendactivemail" />
<input type="hidden" name="session" value="{{ php.sessionid }}" />
<input type="hidden" name="time" value="{{ php.time }}" />
<div class="leftAlign">
<label for="activeUserName">Username:</label>
</div>
<div class="centreAlign">
<input class="inputStyling" type="text" id="activeUserName" name="username" />
</div>
<div class="leftAlign">
<label for="activeEmail">E-mail:</label>
</div>
<div class="centreAlign">
<input class="inputStyling" type="text" id="activeEmail" name="email" />
</div>
<div class="centreAlign">
2015-04-27 15:13:52 +00:00
<input class="inputStyling" type="submit" name="submit" value="Request Activation" id="requestActiveBtn" />
2015-04-19 13:00:32 +00:00
</div>
<div class="subLinks centreAlign">
2015-04-24 19:31:09 +00:00
Read the footnote on the Lost Password form.
2015-04-19 13:00:32 +00:00
</div>
</form>
2015-04-06 21:23:54 +00:00
</div>
{% endif %}
2015-04-06 21:23:54 +00:00
</div>
2015-04-24 19:31:09 +00:00
{% endif %}
{% endblock %}