commit
24b092bf6b
8 changed files with 108 additions and 6 deletions
|
@ -1 +1 @@
|
|||
template not found
|
||||
<#include "./theme/" + template.theme + "/error.ftl">
|
|
@ -0,0 +1 @@
|
|||
<#include "./theme/" + template.theme + "/login-oauth-grant.ftl">
|
|
@ -294,6 +294,48 @@ a.zocial:before {
|
|||
.rcue-login-register.reset .feedback {
|
||||
left: 35.7em;
|
||||
}
|
||||
|
||||
.rcue-login-register.oauth .form-actions {
|
||||
margin-bottom: 0;
|
||||
margin-top: 2em;
|
||||
}
|
||||
|
||||
.rcue-login-register .background-area .content-area {
|
||||
width: 50em;
|
||||
}
|
||||
.rcue-login-register .background-area .content-area ul {
|
||||
border-bottom: 1px solid #34393C;
|
||||
margin-bottom: 2em;
|
||||
}
|
||||
.rcue-login-register .background-area .content-area ul li {
|
||||
border-top: 1px solid #34393C;
|
||||
padding: 2em;
|
||||
}
|
||||
.rcue-login-register .background-area .content-area ul li span:first-child {
|
||||
font-size: 1.3em;
|
||||
}
|
||||
.rcue-login-register .background-area .content-area ul li span.icon-info {
|
||||
float: right;
|
||||
margin-top: 0.5em;
|
||||
}
|
||||
.rcue-login-register .background-area .content-area p.terms {
|
||||
color: #999999;
|
||||
font-size: 1.1em;
|
||||
line-height: 1.3em;
|
||||
}
|
||||
|
||||
.rcue-login-register .background-area p.instruction.instruction.second {
|
||||
color: #999999;
|
||||
}
|
||||
.rcue-login-register .background-area p.instruction + .instruction.second {
|
||||
margin-top: -1.23077em;
|
||||
}
|
||||
|
||||
.rcue-login-register .background-area a.link-right {
|
||||
float: right;
|
||||
font-size: 1.3em;
|
||||
}
|
||||
|
||||
.rcue-login-register.reset .form-area {
|
||||
background-image: none;
|
||||
}
|
||||
|
|
24
forms/src/main/resources/META-INF/resources/forms/theme/default/error.ftl
Executable file
24
forms/src/main/resources/META-INF/resources/forms/theme/default/error.ftl
Executable file
|
@ -0,0 +1,24 @@
|
|||
<#-- TODO: Only a placeholder, implementation needed -->
|
||||
<#import "template-login-action.ftl" as layout>
|
||||
<@layout.registrationLayout bodyClass="reset"; section>
|
||||
<#if section = "title">
|
||||
|
||||
We're sorry...
|
||||
|
||||
<#elseif section = "header">
|
||||
|
||||
We're <strong>sorry</strong> ...
|
||||
|
||||
<#elseif section = "form">
|
||||
|
||||
<p class="instruction">Something happened and we could not process your request.</p>
|
||||
<p class="instruction second">Please make sure the URL you entered is correct.</p>
|
||||
<a href="saas-login.html" class="link-right">Go to the homepage »</a>
|
||||
|
||||
<#elseif section = "info" >
|
||||
|
||||
<div id="info">
|
||||
</div>
|
||||
|
||||
</#if>
|
||||
</@layout.registrationLayout>
|
|
@ -0,0 +1,36 @@
|
|||
<#-- TODO: Only a placeholder, implementation needed -->
|
||||
<#import "template-login-action.ftl" as layout>
|
||||
<@layout.registrationLayout bodyClass="reset oauth"; section>
|
||||
<#if section = "title">
|
||||
|
||||
OAuth Grant
|
||||
|
||||
<#elseif section = "header">
|
||||
|
||||
<strong>Keycloak</strong> Central Login
|
||||
|
||||
<#elseif section = "form">
|
||||
<div class="content-area">
|
||||
<p class="instruction">This application requests access to:</p>
|
||||
<ul>
|
||||
<li>
|
||||
<span>View basic information about your account</span>
|
||||
</li>
|
||||
<li>
|
||||
<span>View your email address</span>
|
||||
</li>
|
||||
</ul>
|
||||
<p class="terms">Keycloak Central Login and Google will use this information in accordance with their respective terms of service and privacy policies.</p>
|
||||
<div class="form-actions">
|
||||
<button class="primary" type="submit">Accept</button>
|
||||
<button type="submit">Cancel</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<#elseif section = "info" >
|
||||
|
||||
<div id="info">
|
||||
</div>
|
||||
|
||||
</#if>
|
||||
</@layout.registrationLayout>
|
|
@ -24,6 +24,7 @@
|
|||
</#list>
|
||||
|
||||
<div class="aside-btn">
|
||||
<p>Forgot <a href="${url.passwordResetUrl}">Password</a>?</p>
|
||||
</div>
|
||||
|
||||
<input class="btn-primary" type="submit" value="Log In"/>
|
||||
|
@ -36,8 +37,6 @@
|
|||
<#if realm.registrationAllowed>
|
||||
<p>${rb.getString('noAccount')} <a href="${url.registrationUrl}">${rb.getString('register')}</a>.</p>
|
||||
</#if>
|
||||
|
||||
<a href="${url.passwordResetUrl}">Reset password</a>
|
||||
</div>
|
||||
|
||||
</#if>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
logIn=Log in
|
||||
logInTo=Log in to
|
||||
logInWith=Log in with
|
||||
noAccount=No account?
|
||||
noAccount=New user?
|
||||
register=Register
|
||||
registerWith=Register with
|
||||
allRequired=All fields are required
|
||||
|
@ -18,7 +18,7 @@ password=Password
|
|||
passwordConfirm=Confirm Password
|
||||
passwordNew=New Password
|
||||
|
||||
authenticatorCode=Authenticator Code
|
||||
authenticatorCode=One-time-password
|
||||
clientCertificate=Client Certificate
|
||||
|
||||
invalidUser=Invalid username or password
|
||||
|
|
|
@ -47,7 +47,7 @@ public class LoginPage extends Page {
|
|||
@FindBy(linkText = "Register")
|
||||
private WebElement registerLink;
|
||||
|
||||
@FindBy(linkText = "Reset password")
|
||||
@FindBy(linkText = "Password")
|
||||
private WebElement resetPasswordLink;
|
||||
|
||||
@FindBy(id = "loginError")
|
||||
|
|
Loading…
Reference in a new issue