*

mwindey

  • *****
  • 482 posts
Random password
« on: March 25, 2022, 04:26:04 PM »
Many websites use a random password generator that offers a suggested password for you. I think it is nice to have this integrated in Osclass. I often use this because the browser remembers this random password anyway and if you forget... There is always the password recovery option.
Maybe it already exists in a plugin?

*

MB Themes

Re: Random password
« Reply #1 on: March 27, 2022, 09:02:34 AM »
Can you show some examples?
Wondering how it could be placed to avoid conflicts with show/hide pass button
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Jhom Gain

  • **
  • 8 posts
Re: Random password
« Reply #2 on: April 19, 2022, 10:33:00 AM »
For example: in my Hosting cPanel -> in Create new Database and user, they have the option to generate random password along with a show/hide button. (Screenshot attached)

The magic wand button fills the password field with a random password. Besides that button, there is eye button to show/hide the password.
« Last Edit: April 19, 2022, 10:35:06 AM by Jhom Gain »

*

MB Themes

Re: Random password
« Reply #3 on: April 19, 2022, 04:04:35 PM »
That require bit different design in theme, anyway thanks for sharing ;)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

cartagena68

  • ***
  • 72 posts
Re: Random password
« Reply #4 on: April 22, 2022, 04:51:17 AM »
Many websites use a random password generator that offers a suggested password for you. I think it is nice to have this integrated in Osclass. I often use this because the browser remembers this random password anyway and if you forget... There is always the password recovery option.
Maybe it already exists in a plugin?


There is a plugin for that is called Password generator but is not easy to find

*

MB Themes

Re: Random password
« Reply #5 on: April 22, 2022, 11:55:25 AM »
It should be quite trivial javascript function.
Example:
Code: [Select]
function generatePassword() {
    var length = 8,
        charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",
        retVal = "";
    for (var i = 0, n = charset.length; i < length; ++i) {
        retVal += charset.charAt(Math.floor(Math.random() * n));
    }
    return retVal;
}
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

cartagena68

  • ***
  • 72 posts
Re: Random password
« Reply #6 on: April 22, 2022, 08:10:44 PM »
Yes, but with the plugin you don't need to make changes to theme files
« Last Edit: April 22, 2022, 08:12:57 PM by cartagena68 »