Another Fix
This commit is contained in:
parent
2c265e4eb6
commit
a36742d485
|
|
@ -11,7 +11,7 @@ module.exports.execute = async (interaction) => {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
await interaction.deferReply({ ephemeral: true });
|
await interaction.deferReply({ ephemeral: true });
|
||||||
const newPassword = interaction.fields.getTextInputValue('newPassword');
|
console.log(JSON.stringify(interaction, null, 2));
|
||||||
let passwordToSet = newPassword;
|
let passwordToSet = newPassword;
|
||||||
if (!newPassword || newPassword.trim() === '') {
|
if (!newPassword || newPassword.trim() === '') {
|
||||||
// Generate password based on process.env.PASSWORD_LENGTH and process.env.PASSWORD_CHARS or default to 32 alphanumeric with caps
|
// Generate password based on process.env.PASSWORD_LENGTH and process.env.PASSWORD_CHARS or default to 32 alphanumeric with caps
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue