1
0
Fork 0

Prompt password reset

refactor/models
Bsian 2020-01-05 20:53:04 +00:00
parent 26e31dece0
commit 641ac31796
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 1 additions and 1 deletions

View File

@ -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 msg = await message.channel.createMessage(`${this.client.stores.emojis.loading} ***Resetting password for ${account.username}...***`);
const tempPass = this.client.util.randomPassword(); 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}\`***`; let completeMessage = `${this.client.stores.emojis.success} ***Password for ${account.username} reset to \`${tempPass}\`***`;
const dmChannel = await this.client.getDMChannel(account.userID); const dmChannel = await this.client.getDMChannel(account.userID);