News:

AbanteCart v1.4.2 is released.

Main Menu
support

I cant restore my admin password

Started by addisripoll, December 06, 2012, 01:20:56 PM

Previous topic - Next topic

addisripoll

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

abantecart

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

addisripoll

Hi, this is for administrator, and my server send and receive mails, and its working fine. Thanks

abantecart

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:
  $this->redirect($this->html->getSecureURL('index/forgot_password','&mail=sent'));
Change to :

  $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

mreamant

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.

abantecart

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

Atome2088

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 ;-)

Basara

Quote from: 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 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. 

maloy

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

livegallery

Hello.
If you use mail reader try to read email in browser interface or with another email reader like Thunderbird. 


abolabo

Please try this piece of code. Previous suggestion does not contains model loading.


  $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

Manalo

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);


Gordon Taylor

#12
Quote from: natdroid on July 30, 2018, 10:09:31 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.

Forum Rules Code of conduct
AbanteCart.com 2010 -