Fixed issues with invalid logins

This commit is contained in:
Andris Reinman 2017-03-11 17:34:28 +02:00
parent d31f261918
commit dbdbde8d7a

View file

@ -32,7 +32,7 @@ let database;
server.onAuth = function (login, session, callback) {
let username = (login.username || '').toString().replace(/\./g, '').trim();
let username = (login.username || '').toString().trim();
database.collection('users').findOne({
username