Kunena 7.0.4 Released

The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0

Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Question Hide "Password" boxes in the CP

More
16 years 9 months ago #25229 by slave2six
Our website uses several components that require login and therefore we have developed a single-sign-on process. Consequently, we want to not allow users to change their password in Kunena and consequently break the single-sign-on.

How do I hide the "Password" and "Verify Password" boxes in the Personal Info area while still allowing users to update their name and email address information?

Please Log in or Create an account to join the conversation.

More
16 years 9 months ago #25231 by xillibit
Hello,

For realised this, open the file components/com_kunena/template/default/plugin/myprofile/myprofile_userdetails_form.php and remove the following lines to number 114 at 121 :
Code:
<tr> <td><?php echo _KUNENA_PASS; ?> </td> <td><input class = "inputbox" type = "password" name = "password" value = "" size = "40"/></td> </tr> <tr> <td><?php echo _KUNENA_VPASS; ?> </td> <td><input class = "inputbox" type = "password" name = "password2" size = "40"/></td> </tr>

I don't provide support by PM, because this can be useful for someone else.

Please Log in or Create an account to join the conversation.

More
16 years 9 months ago #25234 by slave2six
Thanks. That did the trick.

I found that you also have to remove the following validation or the form will not submit properly:

else if ((form.password.value != "") && (form.password.value != form.password2.value))
{
alert("<?php echo addslashes( _KUNENA_JS_WARN_PASSWORD2 );?>");
}
else if (r.exec(form.password.value))
{
alert("<?php printf( addslashes( _KUNENA_JS_WARN_VALID_AZ09 ), addslashes( _KUNENA_JS_PROMPT_PASS ), 4 );?>");
}

Please Log in or Create an account to join the conversation.

Time to create page: 0.273 seconds