Feature: Password Reset Functionality #4

Merged
ChrisChrome merged 35 commits from dev into main 2025-11-21 22:33:23 -07:00
Showing only changes of commit e65297dcdf - Show all commits

View file

@ -23,7 +23,8 @@ module.exports.execute = async (interaction) => {
passwordToSet = Array.from({ length }, () => chars.charAt(Math.floor(Math.random() * chars.length))).join('');
}
try {
await fpbx.updateExtPassword(lookup.extension, passwordToSet);
const updated = await fpbx.updateExtPassword(lookup.extension, passwordToSet);
console.log(updated)
await interaction.editReply({ content: `Your extension password has been reset successfully! Your new password is: ||\`${passwordToSet}\`||`, ephemeral: true });
} catch (error) {
log.error(error);