Add 'keep me logged in' checkbox in first factor page.

pull/286/head
Clement Michaud 2018-10-21 15:25:28 +02:00
parent ad6b064063
commit 059c5936f5
2 changed files with 25 additions and 0 deletions

View File

@ -107,4 +107,26 @@
.u2f-token img {
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 */
}

View File

@ -15,6 +15,9 @@ block content
input(type="text" class="form-control" id="username" placeholder="Username" required autofocus)
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
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")
a(href=reset_password_request_endpoint, class="link forgot-password") Forgot password?
span(class="clearfix")