-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.ftl
executable file
·53 lines (53 loc) · 2.45 KB
/
login.ftl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<#import "template.ftl" as layout>
<@layout.registrationLayout displayInfo=social.displayInfo; section>
<div>
<img class="logo" src="${url.resourcesPath}/img/necronia-logo.png" alt="Necronia">
</div>
<#if section = "title">
${msg("loginTitle",(realm.displayName!''))}
<#elseif section = "header">
<link href="https://fonts.googleapis.com/css?family=Muli" rel="stylesheet"/>
<link href="${url.resourcesPath}/img/Favicon.ico" rel="icon"/>
<script>
function togglePassword() {
var x = document.getElementById("password");
var v = document.getElementById("vi");
if (x.type === "password") {
x.type = "text";
v.src = "${url.resourcesPath}/img/eye.png";
} else {
x.type = "password";
v.src = "${url.resourcesPath}/img/eye-off.png";
}
}
</script>
<#elseif section = "form">
<div class="box-container">
<div>
<p class="application-name">Alfresco Identity Service</p>
</div>
<#if realm.password>
<div>
<form id="kc-form-login" class="form" onsubmit="login.disabled = true; return true;" action="${url.loginAction}" method="post">
<input id="username" class="login-field" placeholder="${msg("username")}" type="text" name="username" tabindex="1">
<div>
<label class="visibility" id="v" onclick="togglePassword()"><img id="vi" src="${url.resourcesPath}/img/eye-off.png"></label>
</div>
<input id="password" class="login-field" placeholder="${msg("password")}" type="password" name="password" tabindex="2">
<input class="submit" type="submit" value="${msg("doLogIn")}" tabindex="3">
</form>
</div>
</#if>
<#if social.providers??>
<p class="para">${msg("selectAlternative")}</p>
<div id="social-providers">
<#list social.providers as p>
<input class="social-link-style" type="button" onclick="location.href='${p.loginUrl}';" value="${p.displayName}"/>
</#list>
</div>
</#if>
<div>
<p class="copyright">© ${msg("copyright", "${.now?string('yyyy')}")}</p>
</div>
</#if>
</@layout.registrationLayout>