Robin S Posted October 8, 2017 Share Posted October 8, 2017 Password Generator Adds a password generator to InputfieldPassword. Usage Install the Password Generator module. Now any InputfieldPassword has a password generation feature. The settings for the generator are taken automatically from the settings* of the password field. *Settings not supported by the generator: Complexify: but generated passwords should still satisfy complexify settings in the recommended range. Banned words: but the generated passwords are random strings so actual words are unlikely to occur. https://modules.processwire.com/modules/password-generator/ https://github.com/Toutouwai/PasswordGenerator 23 Link to comment Share on other sites More sharing options...
Juergen Posted October 8, 2017 Share Posted October 8, 2017 Thanks for the great module. It would be awesome if you make the link text " Generate password " translateable 1 Link to comment Share on other sites More sharing options...
Mike Rockett Posted October 8, 2017 Share Posted October 8, 2017 Very nice - would be awesome if we could somehow integrate these kinds of passwords (for easy memorisation): https://untroubled.org/pwgen/ppgen.cgi 3 Link to comment Share on other sites More sharing options...
Robin S Posted October 9, 2017 Author Share Posted October 9, 2017 14 hours ago, Juergen said: It would be awesome if you make the link text " Generate password " translateable Sure, this is done in v0.0.2 14 hours ago, Mike Rockett said: would be awesome if we could somehow integrate these kinds of passwords (for easy memorisation) If you know of a Javascript library that can generate those sorts of passwords while still satisfying password field settings I'd be happy to integrate it. But I think memorising passwords is only a short hop away from reusing passwords, which is asking for trouble. 3 Link to comment Share on other sites More sharing options...
Mike Rockett Posted October 9, 2017 Share Posted October 9, 2017 8 hours ago, Robin S said: If you know of a Javascript library that can generate those sorts of passwords while still satisfying password field settings I'd be happy to integrate it. But I think memorising passwords is only a short hop away from reusing passwords, which is asking for trouble. Also true - though passphrases and passwords are different beasts in themselves, and one would use them differently, in the context mentioned anyway. I generally like to have passphrases generated, and then saved to my local wallet (and then synced to my cloud wallet). As for a JS lib, I did find some, but they were a bit hectic, and one of them requires a user dictionary (doesn't come with a stock one)... Anyways, was just an idea. 1 Link to comment Share on other sites More sharing options...
Robin S Posted November 24, 2017 Author Share Posted November 24, 2017 v0.0.4 released - adds support for the new password field option that requires the old password to be entered. 3 Link to comment Share on other sites More sharing options...
szabesz Posted November 25, 2017 Share Posted November 25, 2017 17 hours ago, Robin S said: v0.0.4 released - adds support for the new password field option that requires the old password to be entered. Thank you! Should be part of the core, BTW. 1 Link to comment Share on other sites More sharing options...
Juergen Posted November 25, 2017 Share Posted November 25, 2017 33 minutes ago, szabesz said: Should be part of the core, BTW. I agree 1 Link to comment Share on other sites More sharing options...
flydev Posted January 12, 2018 Share Posted January 12, 2018 Hi @Robin S In a process module I am writing, there is a function to create a new user. With PasswordGenerator installed (a must have!) I get the following notice : PHP Notice: Trying to get property of non-object in .../modules/PasswordGenerator/PasswordGenerator.module:76 When I dump $field, Tracy return a null value : $field = $inputfield->hasField; // line 47 There is nothing special in the function, I just declare a new InputfieldPassword : [...] // password $field = new InputfieldPassword(); $field->attr("id+name","password"); $field->label = __("Mot de passe"); $field->required = true; $field->minlength = 6; $field->columnWidth = 50; $form->append($field); [...] $out = $form->render(); return $out; Thanks. 2 Link to comment Share on other sites More sharing options...
Robin S Posted January 12, 2018 Author Share Posted January 12, 2018 @flydev, thanks for the report. Looks like I didn't account for use of InputfieldPassword without an associated FieldtypePassword. Fixed in v0.1.5 (I changed to semantic versioning). 2 1 Link to comment Share on other sites More sharing options...
Robin S Posted January 9, 2020 Author Share Posted January 9, 2020 v0.1.6 released. Adds module config options to override the requirements coming from the password inputfield, so the generator can create stronger passwords than the inputfield requires. 4 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now