How to disable "Forgot password" on login page

Hi everyone,

As a security measure, I would like to disable the “Forgotten password” option on the login page, could someone help me to deactivate it ? Only the admin will be able to do it manually.

Thanks for your help,

FortyTwo

Someone to help me please ?

HI FortyTwo,

Remove the button in the file /application/modules/sessions/views/session_login.php

    <a href="<?php echo site_url('sessions/passwordreset'); ?>" class="btn btn-default">
        <?php _trans('forgot_your_password'); ?>
    </a>

Also remove the files:

  • /application/modules/sessions/views/session_passwordreset.php
  • /application/modules/sessions/views/session_new_password.php

Regards

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.