Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Additional button in user form Suggestion [done]

Post your ideas & suggestions for new nuBuilder features or other improvements
Post Reply
nc07
Posts: 118
Joined: Tue Jun 04, 2019 4:05 am
Has thanked: 5 times
Been thanked: 22 times

Additional button in user form Suggestion [done]

Unread post by nc07 »

Dear Kevin,

I would like to make a suggestion to add a button in user form that generates random password and if it is a new user registration, the a email is sent to the new registered user with login details.

of course developers can achieve this but may on updates , it will disappear.

below function iam using at the moment where the length of password can be defined. It will be easy when creating a number of users and not have to think of any random password.

This just my though and suggestion towards improvement of NB.

Code: Select all

function GenerateRandomPassword(length) {
  var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()_+~|}{[]?><,./-=';
  var password = '';

  for (var i = 0; i < length; i++) {
    var randomIndex = Math.floor(Math.random() * characters.length);
    password += characters.charAt(randomIndex);
  }

  return password;
}


// Example usage:
//var randomPassword = generateRandomPassword(15);
console.log(randomPassword);
Regards
Nilesh
kev1n
nuBuilder Team
Posts: 4291
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: Additional button in user form Suggestion

Unread post by kev1n »

Hi Nilesh,

Thanks for your suggestion/input. A Password Generator has been incorporated in the Users form.
Post Reply