Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+4 votes
935 views
in Q2A Core by
Right now, I use the QA LDAP Plugin to manage user access (vs. using the built in user database).

As a result, passwords are not managed by Q2A itself.

For this reason, I'd like to disable the forgot my password link, or instead perhaps change it to say something like "User accounts are controlled externally. Please use blah blah LDAP to change your password."

How do I do this?

(I haven't yet seen what happens when I try to reset my password with the plugin installed, but I am not trying to screw up the app).
Q2A version: 1.7

1 Answer

+2 votes
by
selected by
 
Best answer

Open your qa-theme.php file and add this initialize function:

public function initialize() {
    if ($this->template === 'login') {
        unset($this->content['form']['fields']['password']['note']);
    }
    parent::initialize();
}

If you want to change it into some text, replace the unset line with this one:

$this->content['form']['fields']['password']['note'] = 'Blah';

by
In my case, I am using the Donut theme, provided by the Q2A community, so I had to modify the qa-donut-layer.php instead of the qa-theme.php. In other words, I had to edit the php file where the theme class was being defined that extends the qa_html_theme_base class.
...