Author Topic: I cant restore my admin password  (Read 25459 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 ....

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 27, 2018, 04:00:23 AM by Basara »

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4358
  • Karma: +298/-10
    • 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?
Please  rate your experience or leave your review
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: 4358
  • Karma: +298/-10
    • 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
Please  rate your experience or leave your review
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: 4358
  • Karma: +298/-10
    • 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. 

Please  rate your experience or leave your review
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: 5753
  • Karma: +273/-2
    • 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. 

Offline maloy

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

Offline natdroid

  • Full Member
  • ***
  • Posts: 113
  • Karma: +36/-3
    • View Profile
Re: I cant restore my admin password
« Reply #9 on: July 30, 2018, 10:09:31 AM »
Check it out! Restore abantecart admin access  https://www.fiverr.com/s2/4303c8b776

Offline livegallery

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


Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: I cant restore my password
« Reply #11 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]
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline Manalo

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


Offline Gordon Taylor

  • Global Moderator
  • Full Member
  • *****
  • Posts: 150
  • Karma: +28/-1
    • View Profile
    • Natural Handcrafted Soaps
Re: I cant restore my admin password
« Reply #13 on: November 18, 2020, 09:45:58 AM »
Check it out! Restore abantecart admin access  https://www.fiverr.com/s2/4303c8b776

Please refrain from posting paid solutions, it could get you banned.
« Last Edit: November 18, 2020, 09:48:50 AM by Gordon Taylor »

 

Powered by SMFPacks Social Login Mod