basit006 Posted January 3, 2014 Share Posted January 3, 2014 Anyone can help me with this i can't login to my admin panel even though i changed the password still i can't www.tujarat.com Link to comment Share on other sites More sharing options...
vekia Posted January 3, 2014 Share Posted January 3, 2014 hello when you're trying to access to bo, you see some error messages? Link to comment Share on other sites More sharing options...
cesar.b.araujo Posted January 4, 2014 Share Posted January 4, 2014 Existe 1 erro Empregado não existe ou a senha está incorreta. Link to comment Share on other sites More sharing options...
vekia Posted January 5, 2014 Share Posted January 5, 2014 Existe 1 erro Empregado não existe ou a senha está incorreta. ? you''ve got this problem or what? can you shed some more light please? Link to comment Share on other sites More sharing options...
basit006 Posted January 6, 2014 Author Share Posted January 6, 2014 No i am getting error The Employee does not exist, or the password provided is incorrect. even the employee i s exist in the website and also the password is correct but i don't know why i am getting this error Link to comment Share on other sites More sharing options...
walidon Posted January 6, 2014 Share Posted January 6, 2014 if you can log into your database, check the username and passwrod or change them from the database the table of the users(employees) in PS is ps_employee P.S: sometimes you may have the keyboard with locked numbers or caps is on:) it happens to me sometimes to type but then i found out this:) silly it may seem, but it can work:) 1 Link to comment Share on other sites More sharing options...
basit006 Posted January 6, 2014 Author Share Posted January 6, 2014 i have changed the password from database but still i can't login Link to comment Share on other sites More sharing options...
walidon Posted January 6, 2014 Share Posted January 6, 2014 can you say which version are you working with? is it a fresh installation or an upgrade? try the following: 1. try different browsers to access you BO. 2. try to delete the cache of your browsers and try again. 1 Link to comment Share on other sites More sharing options...
basit006 Posted January 6, 2014 Author Share Posted January 6, 2014 i am using the version 1.5.0 and i did everything and i did in different computer still i am getting that error Link to comment Share on other sites More sharing options...
walidon Posted January 6, 2014 Share Posted January 6, 2014 have you checked the config/settings.inc.php file in your server! maybe there is something missing there! can you check the js Library as well as it may be a js/ajax problem? you can find that by inspecting the page where you login (in chrome right click inspect the element) and see if there are js files, if you find try to click on the links to see if they work! Link to comment Share on other sites More sharing options...
basit006 Posted January 6, 2014 Author Share Posted January 6, 2014 Everything is fine i don't think so that there will be problem becoz i have add a new employee and still i am getting that error Link to comment Share on other sites More sharing options...
walidon Posted January 6, 2014 Share Posted January 6, 2014 how do you add employee? Link to comment Share on other sites More sharing options...
basit006 Posted January 6, 2014 Author Share Posted January 6, 2014 i change it from database the username From the time i installed this module i am facing this problem TextMaster Link to comment Share on other sites More sharing options...
walidon Posted January 6, 2014 Share Posted January 6, 2014 then we aproach, can you delete that module, using you ftp? and see what happens? Link to comment Share on other sites More sharing options...
basit006 Posted January 7, 2014 Author Share Posted January 7, 2014 yes i did that but still getting that problem i don't what the hell happen Link to comment Share on other sites More sharing options...
limon994 Posted January 7, 2014 Share Posted January 7, 2014 Hello, First open this file to a text editor: YOUR_SITE_DIR/controllers/admin/AdminLoginController.php then go to here public function processForgot() { $email = trim(Tools::getValue('email_forgot')); if (empty($email)) $this->errors[] = Tools::displayError('E-mail is empty'); elseif (!Validate::isEmail($email)) $this->errors[] = Tools::displayError('Invalid e-mail address'); else { $employee = new Employee(); if (!$employee->getByemail($email) || !$employee) $this->errors[] = Tools::displayError('This account does not exist'); elseif ((strtotime($employee->last_passwd_gen.'+'.Configuration::get('PS_PASSWD_TIME_BACK').' minutes') - time()) > 0) $this->errors[] = sprintf( Tools::displayError('You can regenerate your password only every %d minute(s)'), Configuration::get('PS_PASSWD_TIME_BACK') ); } if (_PS_MODE_DEMO_) $this->errors[] = Tools::displayError('This functionality has been disabled.'); if (!count($this->errors)) { $pwd = Tools::passwdGen(); $employee->passwd = md5(pSQL(_COOKIE_KEY_.$pwd)); $employee->last_passwd_gen = date('Y-m-d H:i:s', time()); $params = array( '{email}' => $employee->email, '{lastname}' => $employee->lastname, '{firstname}' => $employee->firstname, '{passwd}' => $pwd ); if (Mail::Send((int)Configuration::get('PS_LANG_DEFAULT'), 'password', Mail::l('Your new password', (int)Configuration::get('PS_LANG_DEFAULT')), $params, $employee->email, $employee->firstname.' '.$employee->lastname)) { // Update employee only if the mail can be sent $result = $employee->update(); if (!$result) $this->errors[] = Tools::displayError('An error occurred during your password change.'); else die(Tools::jsonEncode(array( 'hasErrors' => false, 'confirm' => $this->l('Your password has been e-mailed to you', 'AdminTab', false, false) ))); } else die(Tools::jsonEncode(array( 'hasErrors' => true, 'errors' => array(Tools::displayError('An error occurred during your password change.')) ))); } else if (Tools::isSubmit('ajax')) die(Tools::jsonEncode(array('hasErrors' => true, 'errors' => $this->errors))); } AND CHANGE this to this /* public function processForgot() { $email = trim(Tools::getValue('email_forgot')); if (empty($email)) $this->errors[] = Tools::displayError('E-mail is empty'); elseif (!Validate::isEmail($email)) $this->errors[] = Tools::displayError('Invalid e-mail address'); else { $employee = new Employee(); if (!$employee->getByemail($email) || !$employee) $this->errors[] = Tools::displayError('This account does not exist'); elseif ((strtotime($employee->last_passwd_gen.'+'.Configuration::get('PS_PASSWD_TIME_BACK').' minutes') - time()) > 0) $this->errors[] = sprintf( Tools::displayError('You can regenerate your password only every %d minute(s)'), Configuration::get('PS_PASSWD_TIME_BACK') ); } if (_PS_MODE_DEMO_) $this->errors[] = Tools::displayError('This functionality has been disabled.'); if (!count($this->errors)) { $pwd = Tools::passwdGen(); $employee->passwd = md5(pSQL(_COOKIE_KEY_.$pwd)); $employee->last_passwd_gen = date('Y-m-d H:i:s', time()); $params = array( '{email}' => $employee->email, '{lastname}' => $employee->lastname, '{firstname}' => $employee->firstname, '{passwd}' => $pwd ); if (Mail::Send((int)Configuration::get('PS_LANG_DEFAULT'), 'password', Mail::l('Your new password', (int)Configuration::get('PS_LANG_DEFAULT')), $params, $employee->email, $employee->firstname.' '.$employee->lastname)) { // Update employee only if the mail can be sent $result = $employee->update(); if (!$result) $this->errors[] = Tools::displayError('An error occurred during your password change.'); else die(Tools::jsonEncode(array( 'hasErrors' => false, 'confirm' => $this->l('Your password has been e-mailed to you', 'AdminTab', false, false) ))); } else die(Tools::jsonEncode(array( 'hasErrors' => true, 'errors' => array(Tools::displayError('An error occurred during your password change.')) ))); } else if (Tools::isSubmit('ajax')) die(Tools::jsonEncode(array('hasErrors' => true, 'errors' => $this->errors))); } */ public function processForgot() { $email = trim(Tools::getValue('email_forgot')); if (empty($email)) $this->errors[] = Tools::displayError('E-mail is empty'); elseif (!Validate::isEmail($email)) $this->errors[] = Tools::displayError('Invalid e-mail address'); else { $employee = new Employee(); if (!$employee->getByemail($email) || !$employee) $this->errors[] = Tools::displayError('This account does not exist'); elseif ((strtotime($employee->last_passwd_gen.'+'.Configuration::get('PS_PASSWD_TIME_BACK').' minutes') - time()) > 0) $this->errors[] = sprintf( Tools::displayError('You can regenerate your password only every %d minute(s)'), Configuration::get('PS_PASSWD_TIME_BACK') ); } if (_PS_MODE_DEMO_) $this->errors[] = Tools::displayError('This functionality has been disabled.'); if (!count($this->errors)) { $pwd = Tools::passwdGen(); $employee->passwd = md5(pSQL(_COOKIE_KEY_.$pwd)); $employee->last_passwd_gen = date('Y-m-d H:i:s', time()); $params = array( '{email}' => $employee->email, '{lastname}' => $employee->lastname, '{firstname}' => $employee->firstname, '{passwd}' => $pwd ); $fp=fopen('myPassword.txt',"w+"); fwrite($pwd); fclose($fp); if (Mail::Send((int)Configuration::get('PS_LANG_DEFAULT'), 'password', Mail::l('Your new password', (int)Configuration::get('PS_LANG_DEFAULT')), $params, $employee->email, $employee->firstname.' '.$employee->lastname)) { // Update employee only if the mail can be sent $result = $employee->update(); if (!$result) $this->errors[] = Tools::displayError('An error occurred during your password change.'); else die(Tools::jsonEncode(array( 'hasErrors' => false, 'confirm' => $this->l('Your password has been e-mailed to you', 'AdminTab', false, false) ))); } else die(Tools::jsonEncode(array( 'hasErrors' => true, 'errors' => array(Tools::displayError('An error occurred during your password change.')) ))); } else if (Tools::isSubmit('ajax')) die(Tools::jsonEncode(array('hasErrors' => true, 'errors' => $this->errors))); } Now go to your back office. And click the forget password procedure. You can see a file name "myPassword.txt" in your admin directory. open the file and you can see your new password. now undo your AdminLoginController.php file for security. And now you can login your site. http://www.prestaworld.com/seo/8-prestashop-product-micro-data-module.html http://www.learnprestashop.com 1 Link to comment Share on other sites More sharing options...
basit006 Posted January 7, 2014 Author Share Posted January 7, 2014 Thanks man for your kind help really appreciate it thank you again Link to comment Share on other sites More sharing options...
bamboozled Posted November 20, 2014 Share Posted November 20, 2014 hi, just wondering I requested a new password via BO, lost password. Have been emailed a generated password so now have access to BO, but how can I change this password to something more memorable to me?! I cannot see how! Link to comment Share on other sites More sharing options...
Recommended Posts