Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: I cant restore my admin password  (Read 7382 times)

Offline addisripoll

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
I cant restore my admin password
« 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 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
« Last Edit: September 08, 2016, 09:44:34 AM by eCommerce Core »

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 2888
  • Karma: +221/-8
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: I cant restore my password
« Reply #1 on: December 06, 2012, 01:53:36 PM »
Is this for storefront user or admin?

Does your server send emails?
We need your help to build better free open source eCommerce platform for everyone.
See how you can help

Offline addisripoll

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: I cant restore my password
« Reply #2 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

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 2888
  • Karma: +221/-8
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: I cant restore my password
« Reply #3 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
We need your help to build better free open source eCommerce platform for everyone.
See how you can help

Offline mreamant

  • Newbie
  • *
  • Posts: 33
  • Karma: +0/-1
    • View Profile
Re: I cant restore my password
« Reply #4 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.

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 2888
  • Karma: +221/-8
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: I cant restore my password
« Reply #5 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. 

We need your help to build better free open source eCommerce platform for everyone.
See how you can help

Offline Atome2088

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: I cant restore my password
« Reply #6 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 ;-)

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 2995
  • Karma: +141/-0
    • View Profile
Re: I cant restore my password
« Reply #7 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. 
“Chuck Norris is so amazing.”
― Mother Teresa

 

application and website monitoring