This commit is contained in:
SowinskiBraeden committed 2021-07-03 23:04:16 -07:00
1 parent 74c50b193c
commit f9134c929b
1 file changed
+1 -2
+1 -2
View File
@@ -35,9 +35,8 @@ async function remoteLogin(message, args) {
bcrypt.compare(args[1], result.user.password, (err, isMatch) => { bcrypt.compare(args[1], result.user.password, (err, isMatch) => {
if (err) throw err; if (err) throw err;
if (isMatch) { if (isMatch) {
// Log in data Discord is linked to this email for LPS // Log in data.json Discord is linked to this email for LPS
data.userAcc[message.author] = result.user.email; data.userAcc[message.author] = result.user.email;
console.log(data);
return message.author.send(`Logged in as **${result.user.username}** ${message.author}!`); return message.author.send(`Logged in as **${result.user.username}** ${message.author}!`);
} else { } else {
return message.author.send(`Incorrect password for **${args[0]}** ${message.author}!`); return message.author.send(`Incorrect password for **${args[0]}** ${message.author}!`);