Merge pull request #1465 from thelounge/astorije/rm-remember-me

Remove the "Stay signed in" checkbox at login
This commit is contained in:
Jérémie Astori 2017-08-31 23:38:59 -04:00 committed by GitHub
commit 1c1faf2dd9
4 changed files with 3 additions and 25 deletions

View File

@ -1353,17 +1353,6 @@ part/quit messages where we don't load previews (adds a blank line otherwise) */
margin-top: 10px;
}
#sign-in .remember {
float: left;
font-size: 14px;
margin-top: 12px;
}
#sign-in .remember input {
float: left;
margin: 3px 10px 0 0;
}
#sign-in .btn {
margin-top: 25px;
}

View File

@ -97,12 +97,6 @@
<input class="input" type="password" name="password">
</label>
</div>
<div class="col-xs-12">
<label class="remember">
<input type="checkbox" name="remember" value="on" id="sign-in-remember" checked>
Stay signed in
</label>
</div>
<div class="col-xs-12 error" style="display: none;">
Authentication failed.
</div>

View File

@ -78,11 +78,6 @@ a:hover,
font-size: 12px;
}
#sign-in .remember {
font-size: 12px;
line-height: 30px;
}
#sidebar .chan:first-child {
color: #00ff0e;
}

View File

@ -203,7 +203,7 @@ function index(req, res, next) {
res.render("index", data);
}
function initializeClient(socket, client, generateToken, token) {
function initializeClient(socket, client, token) {
socket.emit("authorized");
socket.on("disconnect", function() {
@ -376,7 +376,7 @@ function initializeClient(socket, client, generateToken, token) {
});
};
if (generateToken) {
if (!Helper.config.public && token === null) {
client.generateToken((newToken) => {
token = newToken;
@ -457,7 +457,7 @@ function performAuthentication(data) {
const socket = this;
let client;
const finalInit = () => initializeClient(socket, client, !!data.remember, data.token || null);
const finalInit = () => initializeClient(socket, client, data.token || null);
const initClient = () => {
client.ip = getClientIp(socket.request);