#1 WordPress forum plugin created by gVectors Team

wpForo – WordPress Forum Plugin
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Documentation

Forum

Home | Forum

wpDiscuz - WordPress Comment Plugin
  • Forums
  • Members
  • Recent Posts
Forums
Main Support Forums
How-to and Troubles...
How to change DEFAU...
 
Share:
Notifications
Clear all

[Solved] How to change DEFAULT password MINIMUM length?

    Last Post
RSS

OWNEDHARD
Posts: 11
 OWNEDHARD
Topic starter
October 18, 2017 6:26 pm
(@ownedhard)
Active Member
Joined: 4 years ago

How i can change DEFAULT password MINIMUM length when user REGISTER?

I use wpforo and userpro.. and userpro password min length = 8, wpforo = 6.. when user have pass with 6 length, userpro behave incorrectly

Topic Tags
password password length
7 Replies
Robert
Posts: 7622
 Robert
Admin
October 18, 2017 6:40 pm
(@robert)
Support Team
Joined: 5 years ago

You can change the password min length using this hook code in your current active WordPress theme functions.php file. I set it 3 in the code, you can change it to whatever you want:

add_filter('wpforo_pass_min_length', function ($length){ return 3;} );

How to Easily Add Custom Code in WordPress

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Reply
garygordon liked
3 Replies
BerndG
 BerndG
(@berndg)
Joined: 2 years ago

Trusted Member
Posts: 94
June 1, 2020 1:26 pm
Reply toRobertRobert

@robert Hi Robert, quick question: Is this still the current way to set the minimum password length higher?

Thanks for a short "yes" or "no", and thanks for caring.

Reply
garygordon
 garygordon
(@garygordon)
Joined: 3 months ago

Active Member
Posts: 9
January 12, 2021 3:41 am
Reply toRobertRobert

@robert If we use this method by changing the code, will our changes be overwritten (or possibly overwritten) when an upgrade / update is released?  Is it possible to have this feature added into the "Settings" area so we can just change this in the WPFORO application instead of having to modify the code (for this purpose) when we want to make a change.  Please let me know.

WPBNS
Certified Website Developer, Technology Training, and Full Service Online Advertising / Marketing Agency | Website: https://wpbns.com | Located: Woolwich Township, New Jersey 08085

Reply
Robert
 Robert
Admin
(@robert)
Joined: 5 years ago

Support Team
Posts: 7622
January 13, 2021 11:39 am
Reply togarygordongarygordon
Robert

@garygordon,

I just updated the solution, please use the new one in the same post.

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Reply
OWNEDHARD
Posts: 11
 OWNEDHARD
Topic starter
October 18, 2017 8:39 pm
(@ownedhard)
Active Member
Joined: 4 years ago

thnx!

Reply
garygordon
Posts: 9
 garygordon
January 18, 2021 9:16 am
(@garygordon)
Active Member
Joined: 3 months ago

@robert Thanks. You provided the following for the minimum length. I was just curious how to additionally set the "max" length for the password.

add_filter('wpforo_pass_min_length', function ($length){ return 3;} );

Please let me know if there's also an option for "max" length?

Gary

WPBNS
Certified Website Developer, Technology Training, and Full Service Online Advertising / Marketing Agency | Website: https://wpbns.com | Located: Woolwich Township, New Jersey 08085

Reply
1 Reply
Sofy
 Sofy
Admin
(@sofy)
Joined: 3 years ago

Support Team
Posts: 4043
Sofy - Facebook Sofy - Twitter
January 18, 2021 10:18 am
Reply togarygordongarygordon

@garygordon,

Use this one: 

add_filter('wpforo_pass_max_length', function ($length){ return 3;} );

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Reply
garygordon liked
  All forum topics
  Previous Topic
Next Topic  
Related Topics
  • Password expiry?
    1 week ago
  • wpForo not allowing p'word reset on Wishlist Member site
    7 months ago
  • Password field appears twice on registration
    9 months ago
  • Change the wording on the password page
    10 months ago
  • Registration problem - The key is invalid
    10 months ago
Topic Tags:  password (12), password length (1),

Forum Search

Join Us!

Download wpForo plugin
on WordPress.org

wpForo Addons

wpforo-private-messages  wpforo-advanced-attachments-128x128  wpforo-embeds-128x128 wpForo User Custom Fields addon  wpForo – Blog Cross Posting addon  wpForo Ads Manager
View all Addons »

Recent Topics

  • Forum is displayed narrow on mobile

    By jalin0919, 3 hours ago

  • How to clear cache for forum? It's for my users view, it's caching old data.

    By dantesalvino, 12 hours ago

  • User role does not adhere to user group

    By langel87, 12 hours ago

  • Email notification Issue

    By Tronictalk, 13 hours ago

  • Registration email not working right

    By Percysgrowroom, 16 hours ago

  • wpforo-admin-note Help

    By Tronictalk, 22 hours ago

Topic Tags

  • new features43
  • seo39
  • translation37
  • plugin conflict35
  • forum35
  • buddypress33
  • login33
  • threaded layout30
  • ultimate member29
  • registration29
  • moderation28
  • editor25
  • avatar24
  • shortcode24
  • css24
  • tags22
  • menu22
  • profile21
  • migration20
  • url20
View all tags (1512)

Recent Posts

  • RE: Forum is displayed narrow on mobile

    Thanks for your support. I resolved problem with belo...

    By jalin0919, 25 mins ago

  • RE: wpforo-admin-note Help

    @tronictalk, You can use the JS code below: jQuery...

    By Sofy, 2 hours ago

  • RE: What this means / do

    @jesus, Please mark the options with red arrows.

    By Sofy, 2 hours ago

  • RE: I now get the email notifications but no longer "bell notifications"

    @jesus, so you meant that my "bell notifications" w...

    By Sofy, 2 hours ago

  • RE: How to clear cache for forum? It's for my users view, it's caching old data.

    I month ago i wanted to switch to a caching plugin more...

    By dimalifragis, 10 hours ago

  • RE: Email notification Issue

    Make sure you enable (extended?) logs to see what happe...

    By dimalifragis, 11 hours ago

  • User role does not adhere to user group

    Hi all! I have a big problem here, I hope you can res...

    By langel87, 12 hours ago

Share:
  Forum Statistics
20 Forums
8,018 Topics
40.2 K Posts
6 Online
15.5 K Members

Latest Post: Forum is displayed narrow on mobile Our newest member: burton0962 Recent Posts Unread Posts Tags

Forum Icons: Forum contains no unread posts Forum contains unread posts

Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Powered by wpForo | Copyright © 2016-2021 gVectors Team
Copyright Registration Service - Click here for more information or to register work
wpForo is Registered with the IP Rights Office
Copyright Registration Service

Ref: 4477265538
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Documentation