Jump to content

how to Forgotton Password with email instead of username (loginRegister Module)

Recommended Posts

Hy everyone,
i am using loginRegister module for front-end user login.
In this module user can login with Email/username, i am showing with Email. done
but not showing Email in Forgotton Password section. there still showing with username.

i want to show Forgotton Password with Email instead username. and should reset with email.

please help me in this section, how i can set it with Email.

Thanks AbdulQayyum.

Share this post

Link to post
Share on other sites

@wbmnfktr Thanks for replay,
i can not see this type of scenario in my dashboard please check this screenshot.


Please suggest me how i can able to bring this scenario, and can enable it.
Thanks AbdulQayyum.

Share this post

Link to post
Share on other sites

Go to the Core Modules.


Look for the Forgot Password module and click the settings button.


And you are there.

Share this post

Link to post
Share on other sites

@abdulqayyum has version 1.0.1, while the latest seems to be 1.0.3, maybe that feature was added in-between those versions? What version of PW are you running?

Share this post

Link to post
Share on other sites

You are correct @dragan. Well then I guess that feature came somewhere around the time Ryan provided us with the Login/Register/Profile module.

Share this post

Link to post
Share on other sites

You probably can.

But first of all you should create a backup of your site. A working and tested backup!

Then you should find out which version of ProcessWire you are running right now and make sure that all of your modules will work with a newer ProcessWire version. You might have to update your modules as well and maybe even have to take a closer look at your PHP version.

You seem to be pretty new to ProcessWire so my advice is:

Get a full backup of that site. Install it in a local environment. Try updating ProcessWire, the modules and whatever is needed.

I wouldn't recommend to update right way as your installed ProcessWire seems pretty old - maybe even kind of outdated.


Can you tell us which version of ProcessWire you are using and what PHP version your hosting has?
Is there anything special with that site? Multilanguage? Custom modules? Custom 3rd-party scripts? Something like that?

Share this post

Link to post
Share on other sites

It should work but as said before:

Get a working backup first! Thinking about a way more modern PHP version wouldn't be a bad idea as well. AND doublecheck all your installed modules.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By Dean
      I don't seem to be able to add a role to a user when they register.
      I have a function to return the role as text based on the option that was chosen on the register form. I have checked that this function is returning the correct value by echoing it to the page. If I pass that text into the addRole function (as $myRole) it doesn't work. If I hard code the exact same text into addRole it does work.
      Do I need to change my getRole function to return the text in a different format?
      function getRole($role) { // return name of role based on id from register_member_role switch ($role) { case 1: return "type1"; break; case 2: return "type2"; break; case 3: return "type3"; break; default: return "type1"; } } $loginRegister = $modules->get('LoginRegister'); $myRole = getRole($input->post('register_member_role')); wire()->addHookBefore('LoginRegister::createdUser', function($event) { $u = $event->arguments[0]; $u->addRole($myRole); $u->save(); }); echo $loginRegister->execute();  
    • By abdulqayyum
      Hy Processwire community,
      There are some problem in fileCompiler cache.
      when i change under the directory \site\templates\ it must change under the directory /site/assets/cache/FileCompiler/site/templates/
      but it does not update and functionality working with /site/assets/cache/FileCompiler/site/templates/ directory.
      In this case please suggest me how i clear fileCompiler cache?
      what i have to clear it manually?
      Thanks AbdulQayyum.
    • By abdulqayyum
      Markup-Google-Recaptcha is not working with LoginRegister module in Forgotton Password Form.
      Here is my code
      wire-> modules -> process -> ProcessForgotPassword.php
      protected function step1_renderForm() {
              $form = $this->modules->get("InputfieldForm");
              $form->attr('action', './?forgot=1');
              $form->attr('method', 'post');
              $field = $this->modules->get("InputfieldText");     
              $field->attr('id+name', 'username');
              $field->attr('class', 'redesign-field forgotPassFeild');
              $field->setAttribute('placeholder', 'Username');
              $field->required = true;
              $field->label = $this->_("Forgotton Password");
              $field->description = $this->_("If you cannot remember your password to access the affiliates portal. simply provide your username in the box below and we'll send you a reset link via email.");
             // Calling MarkupGoogleRecaptcha Module.
              $captcha = $modules->get("MarkupGoogleRecaptcha");
             //  rendering form with recaptcha
              $submit = $this->modules->get("InputfieldSubmit");
              $submit->attr('id+name', 'submit_forgot');
              $this->session->userResetStep = 1;
              // rendering form
               $out .= $form->render();
              // getting captcha script
              $out .= $captcha->getScript();
              return $out;

      I am following this one example.

      please suggest me how i can show MarkupGoogleRecaptcha in forgotton password.
      Getting log error

      Abdul Qayyum
    • By Mithlesh
      Hi there,
      My form is not getting submitted, it is showing:
      Unable to verify successful email delivery of this form submission.
      Attaching for your reference as well: 

      In the Backend, it is showing Connection timed out with smtp.gmail.com
      Pl guide me how to resolve that
  • Create New...