On the registration page I want to display a note under Password saying something like: "Password must contain at least 1 number, 1 small letter, 1 capital letter and 1 special character.". It should be similar with the note under email: "Privacy: Your email address will not be shared or sold to third parties."
In order to implement this thing I have done below changes but I'm afraid it is not enough :(.
In qa-include/lang/qa-lang-options.php i have added the line:
'password_rules' => 'Password must contain at least 1 number, 1 small letter, 1 capital letter and 1 special character.',
In qa-include/app/options.php i have added below lines:
$value = qa_lang_html('options/password_rules');
In qa-include/pages/register.php i have added note as you can see below in yellow:
'password' => array(
'type' => 'password',
'label' => qa_lang_html('users/password_label'),
'tags' => 'name="password" id="password" dir="auto" autocomplete="off"',
'value' => qa_html(@$inpassword),
'note' => qa_opt('password_rules'),
'error' => qa_html(@$errors['password']),
Can you please tell me what else I must change?
Note: It will be great if you can share a solution to display the note on all pages where password can be set or changed but this is more a nice to have thing.