From 641ac31796c846bb0e55c486c24995f7ddac52d6 Mon Sep 17 00:00:00 2001 From: Bsian Date: Sun, 5 Jan 2020 20:53:04 +0000 Subject: [PATCH] Prompt password reset --- src/commands/resetpassword.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/resetpassword.ts b/src/commands/resetpassword.ts index c0ce814..ca38507 100644 --- a/src/commands/resetpassword.ts +++ b/src/commands/resetpassword.ts @@ -23,7 +23,7 @@ export default class ResetPassword extends Command { const msg = await message.channel.createMessage(`${this.client.stores.emojis.loading} ***Resetting password for ${account.username}...***`); const tempPass = this.client.util.randomPassword(); - await this.client.util.exec(`echo '${account.username}:${tempPass}' | chpasswd`); + await this.client.util.exec(`echo '${account.username}:${tempPass}' | chpasswd && chage -d0 ${account.username}`); let completeMessage = `${this.client.stores.emojis.success} ***Password for ${account.username} reset to \`${tempPass}\`***`; const dmChannel = await this.client.getDMChannel(account.userID);