Add 'keep me logged in' checkbox in first factor page.
parent
ad6b064063
commit
059c5936f5
|
@ -108,3 +108,25 @@
|
||||||
.u2f-token img {
|
.u2f-token img {
|
||||||
width: 70px;
|
width: 70px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.keep-me-logged-in {
|
||||||
|
margin-top: 10px;
|
||||||
|
font-size: 0.8em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.keep-me-logged-in input[type=checkbox] {
|
||||||
|
transform: scale(0.8);
|
||||||
|
margin: 0;
|
||||||
|
margin-right: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.keep-me-logged-in label {
|
||||||
|
font-weight: 300;
|
||||||
|
}
|
||||||
|
|
||||||
|
.keep-me-logged-in input,
|
||||||
|
.keep-me-logged-in label {
|
||||||
|
display: inline-block;
|
||||||
|
margin-bottom: 0; /* I added this after I posted my reply */
|
||||||
|
vertical-align: middle; /* Fixes any weird issues in Firefox and IE */
|
||||||
|
}
|
|
@ -15,6 +15,9 @@ block content
|
||||||
input(type="text" class="form-control" id="username" placeholder="Username" required autofocus)
|
input(type="text" class="form-control" id="username" placeholder="Username" required autofocus)
|
||||||
input(type="password" class="form-control" id="password" placeholder="Password" required)
|
input(type="password" class="form-control" id="password" placeholder="Password" required)
|
||||||
button(id="signin" class="btn btn-lg btn-primary btn-block" type="submit") Sign in
|
button(id="signin" class="btn btn-lg btn-primary btn-block" type="submit") Sign in
|
||||||
|
div(class="keep-me-logged-in pull-left")
|
||||||
|
input(type="checkbox" id="keep_me_logged_in" name="keep_me_logged_in" value="true")
|
||||||
|
label(for="keep_me_logged_in") Keep me logged in
|
||||||
div(class="bottom-right-links pull-right")
|
div(class="bottom-right-links pull-right")
|
||||||
a(href=reset_password_request_endpoint, class="link forgot-password") Forgot password?
|
a(href=reset_password_request_endpoint, class="link forgot-password") Forgot password?
|
||||||
span(class="clearfix")
|
span(class="clearfix")
|
||||||
|
|
Loading…
Reference in New Issue