Fix funkyness with theme getting overridden from prefs when using SSH

This commit is contained in:
Bryan Ashby 2019-01-30 20:42:30 -07:00
parent 21b54eda7e
commit 8458d47f0c
1 changed files with 5 additions and 1 deletions

View File

@ -19,6 +19,10 @@ module.exports = class LoginServerModule extends ServerModule {
// :TODO: we need to max connections -- e.g. from config 'maxConnections'
prepareClient(client, cb) {
if(client.user.isAuthenticated()) {
return cb(null);
}
const theme = require('./theme.js');
//
@ -32,7 +36,7 @@ module.exports = class LoginServerModule extends ServerModule {
}
theme.setClientTheme(client, client.user.properties[UserProps.ThemeId]);
return cb(null); // note: currently useless to use cb here - but this may change...again...
return cb(null);
}
handleNewClient(client, clientSock, modInfo) {