Solved: 6 Years, 1 Month ago [General] how to display message about complex password
#1
Solved: 6 Years, 1 Month ago
hi all,

I have a VERY stripped down registration page.  there seems to be a problem with displaying a message about requiring a complex password, something about the javascript validation not taking complex passwords into account.  leefish had mentioned this bit:

$('#password').rules('add', {
required: true,
minlength: 8,
remote:{
url: 'xmlhttp.php?action=complex_password',
type: 'post',
dataType: 'json',
data:
{
my_post_key: my_post_key
},
},
messages: {
minlength: 'Your password must be 8 or more characters long',
required: 'Your password must be 8 or more characters long',
remote: 'You need to enter the text in the image above'
}
});

$('#password2').rules('add', {
required: true,
minlength: 8,
equalTo: '#password',
messages: {
minlength: 'Your password must be 8 or more characters long',
required: 'Your password must be 8 or more characters long',
equalTo: 'The passwords you enter must match'
}
});

here's how my page looks:

[Image: o0rXkXw.jpg]

any ideas?
Reply
#2
Solved: 6 Years, 1 Month ago
aren't you referring to SN forum ? its desktop registration form is already showing required information
Reply
#3
Solved: 6 Years, 1 Month ago
The referred forum is here : http://damnfineshave.com/index.php

Shavenook registration is hardcoded as a workaround (ie the text re passwords is always visible) .
Random Fish and Sims Maniac
MY PLUGINS
Help MyBBSupport help you - remember to mark your threads as solved


Reply
#4
Solved: 6 Years, 1 Month ago
I feel the form is working as expected ! (image) - or I am mistaken about the actual requirement ..
Reply
#5
Solved: 6 Years, 1 Month ago
just hit submit registration with nothing filled in Smile You will see it does not show the complex info.

Clarify:
create a user called Myuser
add a pass "mypass"
add an email

result: message says password must be 8 letters or more

Change pass to mybigpass

result : message says requires complex.

Wanted behaviour: if a complex pass is required then it should say so on first try.
Random Fish and Sims Maniac
MY PLUGINS
Help MyBBSupport help you - remember to mark your threads as solved


Reply
#6
Solved: 6 Years, 1 Month ago
yeah, ideally I'd want it to display a popup or something while the user is inside the password field that it requires mybb's form of a complex password, or else having a stripped down registration page is kind of pointless.
Reply
#7
Solved: 6 Years, 1 Month ago
Fixed

I edited the language string in languages/member.lang.php
Random Fish and Sims Maniac
MY PLUGINS
Help MyBBSupport help you - remember to mark your threads as solved


Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)