Commit ce398a2e authored by jbuechele's avatar jbuechele
Browse files

added check for registration allowed

parent c7921e67
......@@ -11,7 +11,10 @@
<div class="card fat">
<div class="card-body">
<h4 class="card-title">${msg("loginTitleShort")}
<a href="${url.registrationUrl}">${msg("signUpTitle")}</a>
<#if realm.registrationAllowed>
${msg("or")}
<a href="${url.registrationUrl}">${msg("signUpTitle")}</a>
</#if>
</h4>
<#include "alert.ftl">
<form id="kc-form-login" class="form ${properties.kcFormClass!}" action="${url.loginAction}" method="post">
......@@ -19,7 +22,7 @@
<div class="form-group">
<label for="username">${msg("email")}</label>
<input id="username" type="email" class="form-control" name="username" value="" required autofocus>
<input id="username" type="text" class="form-control" name="username" value="" required autofocus>
</div>
<div class="form-group">
......
......@@ -17,7 +17,7 @@ imprintLink=https://www.fairkom.eu/imprint
imprintText=Impressum
email=E-Mail-Adresse
loginTotpTitle=Einmalpasswort
loginTitleShort=Anmeldung oder
loginTitleShort=Anmeldung
signUpTitle=Konto erstellen
registerAlreadyAccountText=Sie haben bereits ein Konto?
loginTotpStep1=Installieren Sie FreeOTP oder Google Authenticator auf Ihrem Smartphone.
......@@ -25,4 +25,5 @@ loginTotpStep2=\u00D6ffnen Sie die Applikation und scannen Sie den Barcode oder
loginTotpStep3=Geben Sie den von der Applikation generierten One-time Code ein und klicken Sie auf Absenden.
loginTotpOneTime=One-time Code
errorWrongAnswer=Sie müssen eine korrekte Antwort auswählen.
correctAnswer=Gut gemacht!
\ No newline at end of file
correctAnswer=Gut gemacht!
or=oder
\ No newline at end of file
......@@ -23,8 +23,9 @@ imprintLink=https://www.fairkom.eu/imprint
imprintText=Imprint
email=E-Mail Address
loginTotpTitle=One-time password
loginTitleShort=Login or
loginTitleShort=Login
signUpTitle=Sign up
registerAlreadyAccountText=Already have an account?
errorWrongAnswer=You need to select a correct answer.
correctAnswer=Well done!
\ No newline at end of file
correctAnswer=Well done!
or=or
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment