aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/auth/create.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/base/auth/create.html')
-rw-r--r--templates/web/base/auth/create.html63
1 files changed, 63 insertions, 0 deletions
diff --git a/templates/web/base/auth/create.html b/templates/web/base/auth/create.html
new file mode 100644
index 000000000..1886da95b
--- /dev/null
+++ b/templates/web/base/auth/create.html
@@ -0,0 +1,63 @@
+[%
+IF forgotten;
+ title = loc('Forgot password');
+ELSE;
+ title = loc('Create an account');
+END;
+
+INCLUDE 'header.html', bodyclass='authpage' %]
+
+<h1>
+ [% title %]
+ <small>
+ [% tprintf(loc('or <a href="%s">sign in</a>'), '/auth') %]
+ </small>
+</h1>
+
+[% IF forgotten %]
+<p>
+ [% IF c.config.SMS_AUTHENTICATION %]
+ [% loc('Sign in by email or text, providing a new password. When you click the link in your email or enter the SMS authentication code, your password will be updated.') %]</p>
+ [% ELSE %]
+ [% loc('Sign in by email instead, providing a new password. When you click the link in your email, your password will be updated.') %]</p>
+ [% END %]
+</p>
+[% END %]
+
+<form action="/auth/[% forgotten ? 'forgot' : 'create' %]" method="post" name="general_auth" class="validate">
+ <fieldset>
+
+ <input type="hidden" name="r" value="[% c.req.params.r | html %]">
+
+ [% loc_username_error = INCLUDE 'auth/_username_error.html' default='email' %]
+
+[% IF c.config.SMS_AUTHENTICATION %]
+ [% SET username_label = loc('Your email or mobile') %]
+[% ELSE %]
+ [% SET username_label = loc('Your email') %]
+[% END %]
+
+ <label class="n" for="username">[% username_label %]</label>
+ [% IF loc_username_error %]
+ <div class="form-error">[% loc_username_error %]</div>
+ [% END %]
+ <input type="text" class="form-control required" id="username" name="username" value="[% username | html %]" autofocus autocomplete="username">
+
+ [% IF field_errors.password_register %]
+ <p class='form-error'>[% field_errors.password_register %]</p>
+ [% END %]
+ <label for="password_register">[% forgotten ? loc('New password:') : loc('Your password') %]</label>
+
+ <div class="general-notes">
+ <p>[% tprintf(loc('Your password should include %d or more characters.'), c.cobrand.password_minimum_length) %]</p>
+ </div>
+
+ <div class="form-txt-submit-box">
+ <input class="required form-control js-password-validate" type="password" name="password_register" id="password_register" value="" autocomplete="new-password">
+ <input class="green-btn" type="submit" name="sign_in_by_code" value="[% loc('Sign in') %]">
+ </div>
+
+ </fieldset>
+</form>
+
+[% INCLUDE 'footer.html' %]