🐛 Prevent login w/o credentials

dev
KaKi87 2 years ago
parent 0f7d8bf04f
commit 0528e1c472

@ -13,6 +13,7 @@ new Server({
if(authentication.method !== 'password')
return authentication.reject(['password']);
const { username, password } = authentication;
if(!username || !password) return authentication.reject();
authentication.accept();
client.once('session', async accept => await tui(accept(), username, password));
});

Loading…
Cancel
Save