diff --git a/client/css/style.css b/client/css/style.css index b63db985..62996940 100644 --- a/client/css/style.css +++ b/client/css/style.css @@ -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; } diff --git a/client/index.html b/client/index.html index d3dac9d5..71bdef0c 100644 --- a/client/index.html +++ b/client/index.html @@ -97,12 +97,6 @@ -
- -
diff --git a/client/themes/crypto.css b/client/themes/crypto.css index 454a7bd2..9b7bf72b 100644 --- a/client/themes/crypto.css +++ b/client/themes/crypto.css @@ -78,11 +78,6 @@ a:hover, font-size: 12px; } -#sign-in .remember { - font-size: 12px; - line-height: 30px; -} - #sidebar .chan:first-child { color: #00ff0e; } diff --git a/src/server.js b/src/server.js index df00c076..0e89f001 100644 --- a/src/server.js +++ b/src/server.js @@ -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);