Notifications
Clear all

wpForo 1.x.x [Solved] Password length

7 Posts
2 Users
1 Reactions
1,372 Views
Posts: 243
Topic starter
(@berndg)
Reputable Member
Joined: 6 years ago

Hi,

 

I found this thread here and changed the file class-members.php as directed from 6 to ten and uploaded it again to our site.

Unfortunately, I still can choose a password with six letters only. What am I doing wrong?

Thanks for caring,

 

Bernd

6 Replies
Alvina
Posts: 1862
Moderator
(@alvina)
Member
Joined: 5 years ago

Hi @berndg,

Please try the following code to increase the pass_min_length value:

add_filter('wpforo_pass_min_length', function(){ return 8; });

Please note the red marked value is the pass_min_length value and can be changed.

The code should be added in the current active WordPress theme functions.php file.

1 Reply
(@berndg)
Joined: 6 years ago

Reputable Member
Posts: 243

@alvina Hi Alvina, thanks for caring. I put it n the themes functions flie, but I can still change the password to only six letters. What might be wrong?

Alvina
Posts: 1862
Moderator
(@alvina)
Member
Joined: 5 years ago

Hi @berndg,

We've just checked and don't find such an issue. The code provided above workes as expected.

Please make sure you've put the code in the right place. It should be added in the current active WordPress theme functions.php file. The screenshot below: https://www.screencast.com/t/F1aEQb0pay8J

Also please note the returned value 8 is the pass_min_length value and can be changed.

3 Replies
(@berndg)
Joined: 6 years ago

Reputable Member
Posts: 243

@alvina Thanks for caring. We use the voice theme. As I already documented above, I put your code into the function.php of the child theme, and, for not to overlook anything, also in the function.php of the theme itself. I cannot see any difference between how we insert it, comparing your and my screenshot.

I would appreciate very much if it is like you wrote, but it's not on our site. I can still change the password to a code that is shorter than it should be. Btw: directly after changing the password the user is logged out automatically, but the new password is saved correctly. 

Alvina
Moderator
(@alvina)
Joined: 5 years ago

Member
Posts: 1862

@berndg,

Sorry for the late response.

The form you are using for login/register not the wpForo login/register form, thus the code provided in the above post does not work for you. Sorry but in this case we can not provide any solution for you.

(@berndg)
Joined: 6 years ago

Reputable Member
Posts: 243

@alvina Nevertheless, thanks again for caring. The day WPForo has a membership module for paid memberships, I will immediately leave the previous plugin for it and install your tool on www.alkohol-ade.com. Until then I am forced to use another plugin for this component 😀