forked from JackAdams/meteor-accounts-ldap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ldap_client.html
executable file
·51 lines (50 loc) · 1.76 KB
/
ldap_client.html
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
<template name="ldapLogin">
{{#if currentUser}}
<div id="login-buttons-logout" class="login-button">Sign out</div>
{{else}}
<div class="login-form login-password-form">
{{#if loggingIn}}
<div class="logging-in">
Logging in ...
</div>
{{else}}
<div id="login-email-label-and-input">
<label for="ldap" id="login-email-label">Username or email</label>
<input id="login-email" type="text" name="ldap">
</div>
<div id="login-password-label-and-input">
<label for="password" id="login-password-label">Password</label>
<input id="login-password" type="password" name="password">
</div>
{{#if failedLogin}}
<div class="message error-message">
Invalid sign in details
</div>
{{/if}}
<div id="login-buttons-password" class="login-button login-button-form-submit" name="login">Sign in</div>
{{/if}}
</div>
{{/if}}
</template>
<template name="ldapLoginButtons">
{{#if template}}
{{> Template.dynamic template=template data=this}}
{{else}}
<div id="login-buttons" class="login-buttons-dropdown-align-{{align}}">
<div class="login-link-and-dropdown-list login-form-sign-in">
{{#with currentUser}}
<a id="logged-in-username" class="login-link-text">{{usernameOrEmail}} ▾</a>
{{else}}
<a id="login-sign-in-link" class="login-link-text">Sign in ▾</a>
{{/with}}
{{#if showForm}}
<div id="login-dropdown-list" class="accounts-dialog">
<a class="login-close-text">Close</a>
<div class="login-close-text-clear"></div>
{{> ldapLogin}}
</div>
{{/if}}
</div>
</div>
{{/if}}
</template>