Fix funkyness with theme getting overridden from prefs when using SSH
This commit is contained in:
parent
21b54eda7e
commit
8458d47f0c
|
@ -19,6 +19,10 @@ module.exports = class LoginServerModule extends ServerModule {
|
||||||
// :TODO: we need to max connections -- e.g. from config 'maxConnections'
|
// :TODO: we need to max connections -- e.g. from config 'maxConnections'
|
||||||
|
|
||||||
prepareClient(client, cb) {
|
prepareClient(client, cb) {
|
||||||
|
if(client.user.isAuthenticated()) {
|
||||||
|
return cb(null);
|
||||||
|
}
|
||||||
|
|
||||||
const theme = require('./theme.js');
|
const theme = require('./theme.js');
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -32,7 +36,7 @@ module.exports = class LoginServerModule extends ServerModule {
|
||||||
}
|
}
|
||||||
|
|
||||||
theme.setClientTheme(client, client.user.properties[UserProps.ThemeId]);
|
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) {
|
handleNewClient(client, clientSock, modInfo) {
|
||||||
|
|
Loading…
Reference in New Issue