Gossamer Forum
Home : Products : Others : Gossamer Community :

Password strength

Quote Reply
Password strength
The Password-strength feature in the User Signup of Community is very nice.

I would like to give my users guidance about how to create a strong password. What are the criteria? I could not find where the rules are written.

Thank you very much.
Quote Reply
Re: [tora] Password strength In reply to
Hi,

Hmmm I wasn't aware of such a feature? Are you sure this isn't something you added in? Whistle

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Password strength In reply to
Hello Andy,

I am sure I did not add that feature. It came with the luna version of Community.

In this post below (10 years ago -whew!) you mention a password strength feature you created for an Affiliate plugin.

https://www.gossamer-threads.com/forum/Products_C9/Gossamer_Links_C5/Development%2C_Plugins_and_Globals_F20/Re%3A_%5Bsocrates%5D_%5BIDEAS%5D_Affiliate_plugin_P300106/?search_string=password%20strength#p300106


Maybe it is similar?


Thanks!
Tora
Quote Reply
Re: [tora] Password strength In reply to
Hi,

The only code I can find is in /Community/User.pm:

Code:
sub cuser_pw_validate_error {
# -------------------------------------------------------------------
my $password = shift;
$password =~ /^\s*$/ and return 'SIGNUP_PASSWORD_MISSING';
length($password) < 4 and return 'SIGNUP_PASSWORD_TOOSHORT';
return '';
}
That basically just checks to see if the password is long enough (4 chars), but I can't see it doing any more than that :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Password strength In reply to
Yes, thanks, I saw that too.

I'll ask GT, and let you know what they say.

Thanks.
Quote Reply
Re: [tora] Password strength In reply to
I found the code. It is in community.js
Quote Reply
Re: [tora] Password strength In reply to
Cool