Search the Community
Showing results for tags 'Reset'.
-
Hi, I am getting errors when trying to reset the password. I change some changes as per suggestions in the ps_configuration table and others but had no success in solving the problem. I found code in below file related to error message. prestashop\controllers\front\PasswordController.php I feel token from email and system do not match as per code condition. if($customer->getValidResetPasswordToken() !== $reset_token) protected function changePassword() { $token = Tools::getValue('token'); $id_customer = (int) Tools::getValue('id_customer'); $reset_token = Tools::getValue('reset_token'); $email = Db::getInstance()->getValue( 'SELECT `email` FROM ' . _DB_PREFIX_ . 'customer c WHERE c.`secure_key` = \'' . pSQL($token) . '\' AND c.id_customer = ' . $id_customer ); if ($email) { $customer = new Customer(); $customer->getByEmail($email); if (!Validate::isLoadedObject($customer)) { $this->errors[] = $this->trans('Customer account not found', [], 'Shop.Notifications.Error'); } elseif (!$customer->active) { $this->errors[] = $this->trans('You cannot regenerate the password for this account.', [], 'Shop.Notifications.Error'); } elseif ($customer->getValidResetPasswordToken() !== $reset_token) { $this->errors[] = $this->trans('The password change request expired. You should ask for a new one.', [], 'Shop.Notifications.Error'); } if ($this->errors) { return; } if ($isSubmit = Tools::isSubmit('passwd')) { // If password is submitted validate pass and confirmation if (!$passwd = Tools::getValue('passwd')) { $this->errors[] = $this->trans('The password is missing: please enter your new password.', [], 'Shop.Notifications.Error'); } if (!$confirmation = Tools::getValue('confirmation')) { $this->errors[] = $this->trans('The confirmation is empty: please fill in the password confirmation as well', [], 'Shop.Notifications.Error'); } if ($passwd && $confirmation) { if ($passwd !== $confirmation) { $this->errors[] = $this->trans('The password and its confirmation do not match.', [], 'Shop.Notifications.Error'); } if (!Validate::isPasswd($passwd)) { $this->errors[] = $this->trans('The password is not in a valid format.', [], 'Shop.Notifications.Error'); } } } if (!$isSubmit || $this->errors) { // If password is NOT submitted OR there are errors, shows the form (and errors) $this->context->smarty->assign([ 'customer_email' => $customer->email, 'customer_token' => $token, 'id_customer' => $id_customer, 'reset_token' => $reset_token, ]); $this->setTemplate('customer/password-new'); } else { // Both password fields posted. Check if all is right and store new password properly. if (!$reset_token || (strtotime($customer->last_passwd_gen . '+' . (int) Configuration::get('PS_PASSWD_TIME_FRONT') . ' minutes') - time()) > 0) { Tools::redirect('index.php?controller=authentication&error_regen_pwd'); } else { $customer->passwd = $this->get('hashing')->hash($password = Tools::getValue('passwd'), _COOKIE_KEY_); $customer->last_passwd_gen = date('Y-m-d H:i:s', time()); if ($customer->update()) { Hook::exec('actionPasswordRenew', ['customer' => $customer, 'password' => $password]); $customer->removeResetPasswordToken(); $customer->update(); $mail_params = [ '{email}' => $customer->email, '{lastname}' => $customer->lastname, '{firstname}' => $customer->firstname, ]; if ( Mail::Send( $this->context->language->id, 'password', $this->trans( 'Your new password', [], 'Emails.Subject' ), $mail_params, $customer->email, $customer->firstname . ' ' . $customer->lastname ) ) { $this->context->smarty->assign([ 'customer_email' => $customer->email, ]); $this->success[] = $this->trans('Your password has been successfully reset and a confirmation has been sent to your email address: %s', [$customer->email], 'Shop.Notifications.Success'); $this->context->updateCustomer($customer); $this->redirectWithNotifications('index.php?controller=my-account'); } else { $this->errors[] = $this->trans('An error occurred while sending the email.', [], 'Shop.Notifications.Error'); } } else { $this->errors[] = $this->trans('An error occurred with your account, which prevents us from updating the new password. Please report this issue using the contact form.', [], 'Shop.Notifications.Error'); } } } } else { $this->errors[] = $this->trans('We cannot regenerate your password with the data you\'ve submitted', [], 'Shop.Notifications.Error'); } }
-
Hi All. I am new on this forum and I hope I can solve this rare problem I detected today. I have installed a fresh prestashop 1.7.6.5 on my hosting via a manager called Softaculous. The installation were without errors. I was checking the entire functionality and I fount that once I ask for a new administrator password with an email like [email protected] , the page says: ******************************************************* Please, check your mailbox. A link to reset your password has been sent to you. ******************************************************* And nothing is sent to my admin email. I tested with the possibility to create another users with . CLOUD and .com domains and the system goes as expected only in .com domains. As as notice to developers, and if someone can lead them this "bug" or tell me how can I report this, advice them to consider the new domains approved to send mail in the recover password page of the employees in Prestashop. Thanks for your attention. Greetings PhB
-
- reset
- administrator
-
(and 1 more)
Tagged with:
-
I am newcomer here, I dont have a lot of experience in dev prestashop, but it is heavy system for maintaining and dev. My questions is: why after enter to concrete category in left menu(filter) it is disappeared? And where can I translate left menu in Prestashop, including filter? I have attached screens. Thanks
-
Hello guys, I'm new in prestashop and i want to learn. I have a problem, i trying to reset a random module from my shop when i access a front controller(when i acces the link, the selected module will be reset), but i don't know why the controllers and hooks are not installed and i don't know why...... Value from modul are reset but the hooks and controllers are not installed.... I use prestashop 1.6.1.18, for 1.7.x it's working perfect... $value = 'randomModule'; $module_name_reset = Module::getInstanceByName($value); $module_name_reset->uninstall(); $module_name_reset->install();
-
Hello, in my Prestashop 1.7.3.3 all returning customers will see an empty shopping cart even if they put items in it the last time they logged in. I can see those carts as "abandoned" in the cart list. Is this a known problem? Who has any solution or even a hint what or how I can investigate further. Thanks in advance!
-
I could not log in and had to redo my password and then all the shop content was gone, I still see it on my homepage but inside prestashop all the configurations are gone. Is it possible to reset my prestashop state to how it was p.e. at 31.12.2017?
-
Hi, I need to reset the entire Prestashop Database using the Cleaner module provided with version 1.5.4.x When i use the Cleaner Module all Database is reset correctly but the Category ID continue from the last category i've entered before the Cleaning. I need the Category ID is reset to its original value of "3". Is it possible ? ( Tested also in a fresh new installation ) Thanks
- 30 replies
-
- Prestashop Cleaner
- Reset
-
(and 2 more)
Tagged with:
-
Bonjour Comment nettoyer toutes les statistiques ? Dans la documentation relative au stats (http://doc.prestashop.com/display/PS16/Statistics) il est écrit qu'on peu utiliser "Auto-clean period" mais je n'arrive pas à la trouver : you can use the "Auto-clean period" Qui a une idée sur ce "Auto-clean" ? Merci
-
Hi all! I have a created a test-account for my website, the e-mail belongs to me and I am trying to reset the password using the password-recovery feature from my website. Step 1: I choose forget your password, a link is succesfully sent Step 2: I select the link, I am redirected to my website Step 3: I receive another e-mail in which I receive the log-in user (my e-mail) which I already know! But no password at all. From there I am lost because I cannot get any way to reset the password using standard procedure (I can definitely change it from the back office but I need this option to be working when my site will be launched). I have recently changed the e-mail template. Could it be related to that? Thanks in advance for your kind help!
-
Hi. I have created a script that can make it possible for users to create a store frontend. But when i create the stores most modules are shown but modules like: top menu, image slider, products on frontpage and so needs to be reset to show up.. Anybody know why?
-
I've accidentally enabled Product Customization on some products and despite configuring the two fields to zero ('0') they still show a "Product Customization" tab when viewing the product. HOW TO I DISABLE THIS?!? All I can think of is to edit the database directly, but that's can't possibly be the only or best way.
- 7 replies
-
- product
- customization
-
(and 3 more)
Tagged with:
-
Hi, Am searching for SQL commands to completelly reset/delete all stock transactions, warehouses and other related records. We have enabled advanced stock before, but are having issues now. Simply disabling a'advanced stock' doesn't solve our issues. So: Besides truncating some tables (which? warehouses?orders?stock statusses?) , are there any fields we can reset on product level ? Goal would be to have all products quantity set to 0 , and all warehouses deleted. It does not matter if we loose orders and/or customers while deleting these. (Though we do not want to lose our products/categroies setup, or our product combinations, neither our multistore config) Thx in advance.
- 3 replies
-
- advanced stock
- stock
-
(and 5 more)
Tagged with:
-
Hi to everybody, I already posted this question in another thread (italian forum), but apparently nobody has got an opinion/solution. Weel, to update the quantities available and prices for sale I override some existing products through the csv import. Csv file contains only the id, product name, quantity and the selling price including tax. The system is working properly and the updates are ok, but product updated change categories and back to being in the category "home". I do not think it is a normal thing, since all other data products are not affected by changes (tags, pictures, cards, etc. ..). In my operations i never use category field, but apparently, this field is overrides with a default value (1). Does anyone have an opinion ( maybe a solution ) ? Thanks
-
Problem: Prestashop password reset fails. Once it fails, Prestashop password reset breaks all employee passwords. Solution: Instructions on how to manually reset prestashop employee password using PHPMyAdmin Tested on Prestashop 1.6.1.5 (confirmed to work on earlier versions to 1.5) 1. Log in to your cpanel. (or use ftp) Open file manager. Go to your shop's root directory Open to the "config" folder. Find and Edit the settings.inc.php file (If you do not use cpanel then FTP to your shop's root directory. Open the "config" folder" and then download a copy of the "settings.inc.php" file) 2. Open/Edit the settings.inc.php file. Find the line in the settings.inc.php file that contains: "COOKIE_KEY". Copy only the key without the quotes. Example Key: ajeuifknshw2pulwsbdtelamxbcyejalpqpsdmfjqbpdbytwlochetpzclws 3. Paste the key on to notepad++ or your favorite text editor 4. At the very end of the cookie_key you pasted to notepad type in your new password. No space between the cookie key and the password. Example cookie WITH New password: ajeuifknshw2pulwsbdtelamxbcyejalpqpsdmfjqbpdbytwlochetpzclwsNEWPASSWORD OK, you're half way there. 5. Open PHPMYAdmin Find the row labled "ps_employee" and open it. (The prefix may be slightly different: xxxx_employee) 6. Find the employee that needs a new password. Click "edit" Two items need to be changed on the password row: 7. First item: "Function" column Use the dropdown to select the MD5 option. 8. Second item: The "Value" column. Delete existing key in the "value" column. Paste the new key with the new password attached. (See the "Example cookie WITH New password" above.) 9. Go to the bottom and click "Go" 10. You should now be able to log in. I hope this helps someone out there. I write these
- 1 reply
-
- prestashop
- 1.6
-
(and 3 more)
Tagged with:
-
My- Account Login Button missing
Designinfo posted a topic in Ecommerce x PrestaShop [ARCHIVE BOARD]
The my-account login button in the front office has gone missing . It should appear next to the contact us button however it suddenly dissappeared. I have reset , uninstalled and reinstalled several times and also hooked it in the header . please help. www.designinfo.in -
Buongiorno a tutti, Un cliente ha dimenticato la sua password, ha seguito la procedura per il recupero della password, ma non è riuscito comunque a resettarla. Ho provato a seguire la stessa procedura: Clicco su Hai dimenticato la tua password?, metto l'email e vedo la conferma di invio Ricevo l'email e apro il link per il reset Si apre una pagina di conferma, con scritto che è stata inviata un'altra e-mail Apro l'e-mail e c'è scritto solo che la password è stata modificata con successo Ma la nuova password non la vedo da nessuna parte. Non mi è stato chiesto di inserire una nuova password e non mi è arrivata nessuna password generata in automatico. Per il momento ho modificato io manualmente la password del cliente mettendone una temporanea. Ho cercato sul forum e su Google ma non ho trovato altri problemi simili. Grazie in anticipo per ogni aiuto.
-
Merhaba Arkadaşlar, müşteriler şifremi unuttum kısmında e-posta adreslerini ekleyip yeni şifre istedikleri zaman; 1 adet hata var Eposta gönderirken hata oluştu. yukarıdaki hata oluşuyor. Mail gönderiminde problem yok ama nedense böyle bir sorun var. Lütfen yardımcı olur musunuz? 1.5.4 versiyon
-
In order to get to the bottom of a problem with Cash on Delivery (CoD) I figured I'd try resetting the module, or even uninstall, delete and reinstall it. Regardless of the two approaches, I get a prestashop database exceiption: Take a look. The module installs, but doesn't seem to show up during checkout, even if it is enable as a valid payment method (bottomg of payments). Cheers, K edit: Yes, I've cleared cache On both server, prestashop and browser and forced compiling.
-
E' da alcuni giorni che non riesco assolutamente a lavorare con prestashop . Una volta connesso all' applicazione riesco a lavorare per qualche minuto poi la connessione viene resettata con i messaggi: 1) inizialmente "Alcune schede non sono state caricate correttamente, vuoi ricaricarle?" 2) quindi "The connection was reset" Come browser uso firefox. Non posso assolutamente procedere con l'inserimento dei prodotti . Qualsiasi aiuto e' sentitamente apprezzato !!!!!!!! Grazie .
-
I need to reset the statistics of my shop before you go online? How can I do?
- 3 replies
-
- PRESTASHOP
- STATISTICS
-
(and 1 more)
Tagged with:
-
Ciao Ragazzi, come posso resettare/cancellare/eliminare i dati presenti nel pannello di controllo? Ovviamente fanno riferimento a fare in modo che possano ricominciare da zero? Grazie Michele
- 4 replies
-
- pannello di controllo
- cancellazione
-
(and 1 more)
Tagged with:
-
Hi, I use prestashop 1.6.0.8. In the modules > "position" settings I just deleted by mistake all modules. Now the whole appearance of the shop is wasted and I'm pretty angry with myself. Is there a way to reset the bootstrap-default-template. I cannot just delete the shop and set it up fresh, because I worked hard to get over 6000 products into it:( cheers, Summit
-
Bonjour, À défaut d'avoir trouver ma réponse dans la documentation du guide du développeur Prestashop, je viens vous la poser ici. Comment puis-je contrôler ce qu'il se passe quand l'administrateur d'une boutique réinitialise un module ? On peut relever l’existence des fonctions install() et uninstall() mais, existe-t-il une fonction équivalente lorsque l'on clique sur le bouton de réinitialisation du module ?
- 2 replies
-
- réinitialisation
- reset
-
(and 3 more)
Tagged with: