blob: 56ac28d5312f474f97663b38daf9716e51a0b90d (
plain)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
{strip}
{form class="col-md-6 col-xs-12 form-horizontal" name="login" legend="Please sign in to continue" ipackage=users ifile='validate' secure=$gBitSystem->isFeatureActive("site_https_login_required")}
{if $hybridProviders}
<div class="form-group">
{formlabel label="Sign in with" for="user"}
{forminput}
{foreach from=$hybridProviders key=providerKey item=providerHash}<a {if !$providerHash.image}class="btn btn-default"{/if} href="{$smarty.const.USERS_PKG_URL}validate?provider={$providerHash.provider}">{if $providerHash.image}<img src="{$providerHash.image}" alt="{tr}Sign in with {$providerHash.provider}{/tr}" style="max-height:40px">{else}{biticon ipackage="icons" iname=$providerHash.icon} {$providerHash.provider}{/if}</a> {/foreach}
{formhelp note="Use one of the sites above to login. If you have previously logged in, we will connect your existing account."}
{/forminput}
</div>
<hr>
{/if}
<div class="form-group">
{formfeedback error=$error}
</div>
<div class="form-group">
{formlabel label="Username or Email" for="user"}
{forminput}
<input class="form-control" type="text" name="user" id="user" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
{if $gBitSystem->isFeatureActive('users_allow_register')}
{/if}
{/forminput}
</div>
<div class="form-group">
{formlabel label="Password" for="pass"}
{forminput}
<div class="input-group">
<input class="form-control" type="password" name="pass" id="password" />
<span class="input-group-btn">
<button class="btn btn-default" type="button" id="bw-toggle-password">
<span class="glyphicon glyphicon-eye-open"></span>
</button>
</span>
</div>
{if $gBitSystem->isFeatureActive('users_forgot_pass')}
{formhelp note="<a href='`$smarty.const.USERS_PKG_URL`remind_password.php'>Forgot your password?</a> or <a href='`$smarty.const.USERS_PKG_URL`register.php'>Need to register?</a>"}
{/if}
{/forminput}
</div>
{if $gBitSystem->isFeatureActive('users_remember_me')}
<div class="form-group">
{formlabel label="" for=""}
{forminput label="checkbox"}
<input type="checkbox" name="rme" id="rme" value="on" checked="checked" />
{tr}Remember Me{/tr}
{/forminput}
</div>
{/if}
<div class="form-group">
{formlabel label="" for=""}
{forminput class="submit"}
<input type="submit" class="btn btn-primary" name="login" value="{tr}Sign In{/tr}" />
{if !$gBitSystem->isFeatureActive('site_https_login_required') && empty($smarty.server.HTTPS)} {biticon ipackage="icons" iname="lock" iexplain="Insecure" class="fa-large"}{/if}
{/forminput}
</div>
{/form}
<script>
document.getElementById("user").focus();
$(document).ready(function() {
$('#bw-toggle-password').click(function() {
var passwordField = $('#password');
var passwordFieldType = passwordField.attr('type');
if (passwordFieldType === 'password') {
passwordField.attr('type', 'text');
$(this).find('span').removeClass('glyphicon-eye-open').addClass('glyphicon-eye-close');
} else {
passwordField.attr('type', 'password');
$(this).find('span').removeClass('glyphicon-eye-close').addClass('glyphicon-eye-open');
}
});
});
</script>
{/strip}
|