AbanteCart Community

Shopping Cart Operations => Support => General Support => Topic started by: addisripoll on December 06, 2012, 01:20:56 PM

Title: I cant restore my admin password
Post by: addisripoll on December 06, 2012, 01:20:56 PM
Hi, i want to restore my password from, but wen i send the request, then you send me an email that says:

"Restablecimiento ....

link es valido por un dia
si no enviar solicitud ignorar mail"

But th links doesnt exist on the email, can you help me?

Thanks
Title: Re: I cant restore my password
Post by: abantecart on December 06, 2012, 01:53:36 PM
Is this for storefront user or admin?

Does your server send emails?
Title: Re: I cant restore my password
Post by: addisripoll on December 07, 2012, 08:20:45 AM
Hi, this is for administrator, and my server send and receive mails, and its working fine. Thanks
Title: Re: I cant restore my password
Post by: abantecart on December 07, 2012, 11:51:11 AM
I can suggest a simple hack to get your temporary password to be displayed instead of email 

Edit following file
admin/controller/pages/index/forgot_password.php

Locate line 54:
Code: [Select]
  $this->redirect($this->html->getSecureURL('index/forgot_password','&mail=sent'));Change to :
Code: [Select]
  $password = 'YOUR_NEW_PASS';
  $this->model_user_user->editUser($this->user_data['user_id'], array('password' => $password));
  exit;
  $this->redirect($this->html->getSecureURL('index/forgot_password','&mail=sent'));

Run reset password in admin and new password will be saved.

Attention!! Do not forget to change code back, right away
Title: Re: I cant restore my password
Post by: mreamant on May 05, 2013, 01:42:56 PM
Thanks.  I don't get into the actual code, but perhaps this should be reported as a bug to be fixed in an upcoming version.
Title: Re: I cant restore my password
Post by: abantecart on May 06, 2013, 09:34:08 AM
Bug? Why is this a bug?
Check your email configuration. If default email on your server or abantecart settings were not set up and you forgot your password, there is no way to reset it without code tweak .
This is simple security measure. 

Title: Re: I cant restore my password
Post by: Atome2088 on August 06, 2014, 06:59:12 PM
Hello,

I tried this method and get the following fatal error message in return:

Fatal error: Call to a member function editUser() on a non-object in /home/....../admin/controller/pages/index/forgot_password.php on line 55

What should I do, please?

Thank you for your patience ;-)
Title: Re: I cant restore my password
Post by: Basara on August 08, 2014, 05:50:04 AM
Hi, i want to restore my password from, but wen i send the request, then you send me an email that says:

"Restablecimiento de contrase├▒as se solicito para el usuario con este correo electronico (addisripoll  @  gmail.com). Por favor haga click en el enlace de abajo para continuar.

link es valido por un dia
si no enviar solicitud ignorar mail"

But th links doesnt exist on the email, can you help me?

Thanks

Hello.
If you use mail reader try to read email in browser interface or with another email reader like Thunderbird. 
Title: Re: I cant restore my admin password
Post by: maloy on July 02, 2018, 12:00:04 AM
I am also having the same problem...'Fatal error: Call to a member function editUser() on a non-object in /home/deltacon/public_html/admin/controller/pages/index/forgot_password.php on line 65'

PLEASE HELP ARGENTLY

thanks
Title: Re: I cant restore my admin password
Post by: natdroid on July 30, 2018, 10:09:31 AM
Check it out! Restore abantecart admin access  https://www.fiverr.com/s2/4303c8b776
Title: Re: I cant restore my admin password
Post by: livegallery on September 27, 2018, 04:05:34 AM
Hello.
If you use mail reader try to read email in browser interface or with another email reader like Thunderbird. 

Title: Re: I cant restore my password
Post by: abolabo on September 27, 2018, 05:36:35 AM
Please try this piece of code. Previous suggestion does not contains model loading.

Code: [Select]
  $password = 'YOUR_NEW_PASS';
                        $this->loadModel('user/user');
    $this->model_user_user->editUser($this->user_data['user_id'], array('password' => $password));
  exit;
  $this->redirect($this->html->getSecureURL('index/forgot_password','&mail=sent'));
[/quote]
Title: Re: I cant restore my admin password
Post by: Manalo on February 11, 2019, 06:45:16 PM
I'd like to recommend using the following temporary modification instead:

redirect($link);
exit;

This would be inserted just before this line:

$mail = new AMail($this->config);