summaryrefslogtreecommitdiff
path: root/templates/login.html.ep
diff options
context:
space:
mode:
Diffstat (limited to 'templates/login.html.ep')
-rw-r--r--templates/login.html.ep20
1 files changed, 17 insertions, 3 deletions
diff --git a/templates/login.html.ep b/templates/login.html.ep
index a5aa8e3..ce89813 100644
--- a/templates/login.html.ep
+++ b/templates/login.html.ep
@@ -44,6 +44,15 @@
</div>
</div>
% }
+ % elsif ($from eq 'auth_required') {
+ <div class="card">
+ <div class="card-content">
+ <span class="card-title">Login notwendig</span>
+ <p>Die aufgerufene Seite ist nur mit travelynx-Account zugänglich.</p>
+ <p><a href="/">Über travelynx</a> · <a href="/register">Registrieren</a></p>
+ </div>
+ </div>
+ % }
</div>
</div>
% }
@@ -55,7 +64,7 @@
<div class="row">
<div class="input-field col s12">
<i class="material-icons prefix">account_circle</i>
- %= text_field 'user', id => 'user', class => 'validate', required => undef, maxlength => 60, autocomplete => 'username'
+ %= text_field 'user', id => 'user', class => 'validate', required => undef, pattern => '[0-9a-zA-Z_-]+', maxlength => 60, autocomplete => 'username'
<label for="user">Account</label>
</div>
<div class="input-field col s12">
@@ -87,6 +96,11 @@
<div class="col s3 m3 l3">
</div>
</div>
+ % if (app->config->{registration}{disabled}) {
+ <div class="row" style="margin-top: 2em;">
+ <div class="col s12 center-align">
+ <em>Diese Instanz erlaubt derzeit keine Registrierung neuer Accounts</em>
+ </div>
+ </div>
+ % }
%= end
-
-%= include '_footer', version => stash('version')