newiconcs Posted October 9, 2010 Share Posted October 9, 2010 How does one configure PrestaShop so that any new user that creates a new account (registers) in Front Office cannot login until administrator manually activates the account (that is new user accounts are created disabled and require manual administrator action to enable and allow front office login access)? Link to comment Share on other sites More sharing options...
rocky Posted October 10, 2010 Share Posted October 10, 2010 Try changing line 101 of authentication.php (in PrestaShop v1.3.2) from: $customer->active = 1; to: $customer->active = 0; 1 Link to comment Share on other sites More sharing options...
tomerg3 Posted October 10, 2010 Share Posted October 10, 2010 My Private Shop module lets you approve new registrations before they can log inhttp://www.prestashop.com/forums/viewthread/43991/ Link to comment Share on other sites More sharing options...
newiconcs Posted October 11, 2010 Author Share Posted October 11, 2010 Excellent, thank you rocky and tomerg3. Link to comment Share on other sites More sharing options...
coccobill Posted January 29, 2012 Share Posted January 29, 2012 Try changing line 101 of authentication.php (in PrestaShop v1.3.2) from: $customer->active = 1; to: $customer->active = 0; Hi, i've prestashop 1.4.6.2 but i can't find this code in my authentication file.. How can i solve it? Regards Link to comment Share on other sites More sharing options...
rocky Posted February 18, 2012 Share Posted February 18, 2012 The code has moved to line 150 of controllers/AuthController.php. 1 Link to comment Share on other sites More sharing options...
nobilebarabba Posted May 31, 2012 Share Posted May 31, 2012 The code has moved to line 150 of controllers/AuthController.php. is it possible to send an automatic email to customer when the admin click on the red X to activate the account? thanks Link to comment Share on other sites More sharing options...
Geradmit Posted October 25, 2012 Share Posted October 25, 2012 One more question where I need to change in 1.5 presta? Link to comment Share on other sites More sharing options...
sadlyblue Posted November 15, 2012 Share Posted November 15, 2012 One more question where I need to change in 1.5 presta? Take a look at: http://www.prestashop.com/forums/index.php?/topic/149476-set-new-registered-customer-inactive-redirect-failed/page__view__findpost__p__739343 It worked for me... 1 Link to comment Share on other sites More sharing options...
giwrgos Posted October 12, 2013 Share Posted October 12, 2013 Try changing line 101 of authentication.php (in PrestaShop v1.3.2) from: $customer->active = 1; to: $customer->active = 0; rocky is there any way that we can change the error message that the user see when tries to logged in when the account is deactivated? For example if the account doesn't yet activated to show an error message like: Your account hasn't been activated by the administrator. And to have another one if the user tries to add a wrong password. Now you have one error message for both situations Link to comment Share on other sites More sharing options...
WebMasters Posted July 29, 2014 Share Posted July 29, 2014 (edited) Im having 1.6.0.8 version of prestashop i want my admin to accept the user registration then only the user will be able to login to the shop Please Help me out with the Same. Edited July 29, 2014 by WebMasters (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted July 30, 2014 Share Posted July 30, 2014 Im having 1.6.0.8 version of prestashop i want my admin to accept the user registration then only the user will be able to login to the shop Please Help me out with the Same. Please check out Authorized Clients Only module. Link to comment Share on other sites More sharing options...
mormorymor Posted July 23, 2015 Share Posted July 23, 2015 Im having 1.6.0.8 version of prestashop i want my admin to accept the user registration then only the user will be able to login to the shop Please Help me out with the Same. Same help us without a module.. Files is not same with old versions.. Link to comment Share on other sites More sharing options...
rocky Posted July 24, 2015 Share Posted July 24, 2015 In PrestaShop v1.6.1.0, it is on lines 433 and 549 of controllers/front/AuthController.php. Link to comment Share on other sites More sharing options...
mormorymor Posted July 24, 2015 Share Posted July 24, 2015 In PrestaShop v1.6.1.0, it is on lines 433 and 549 of controllers/front/AuthController.php. Thanks you so much! Another question is , Is there a way for send mail to admin when someone registered ? For admin activation them. Link to comment Share on other sites More sharing options...
El Patron Posted July 24, 2015 Share Posted July 24, 2015 Thanks you so much! Another question is , Is there a way for send mail to admin when someone registered ? For admin activation them. here is one of my free modules that should help. https://www.prestashop.com/forums/topic/294459-free-module-customer-registration-admin-alerts-email-when-new-registration/ Link to comment Share on other sites More sharing options...
mormorymor Posted July 24, 2015 Share Posted July 24, 2015 In PrestaShop v1.6.1.0, it is on lines 433 and 549 of controllers/front/AuthController.php. I got this message when i made that => 0 to 433 and 549 of controllers/front/AuthController.php. Its working well on panel but when we make registration and press submit button page is lock on loading then after much minutes we got this message. Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. here is one of my free modules that should help. https://www.prestashop.com/forums/topic/294459-free-module-customer-registration-admin-alerts-email-when-new-registration/ And El Patron thanks for it really but it not working on us. I set up module and change mail in module setting. But it doesnt send any mail to me. Is there any other option needed? Link to comment Share on other sites More sharing options...
El Patron Posted July 24, 2015 Share Posted July 24, 2015 I got this message when i made that => 0 to 433 and 549 of controllers/front/AuthController.php. Its working well on panel but when we make registration and press submit button page is lock on loading then after much minutes we got this message.Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. And El Patron thanks for it really but it not working on us. I set up module and change mail in module setting. But it doesnt send any mail to me. Is there any other option needed? well if you are getting internal server error (resolve first) then I do not think the module hook for email would be executed. Best to get your 'hack' working first... Link to comment Share on other sites More sharing options...
mormorymor Posted July 24, 2015 Share Posted July 24, 2015 (edited) Hack? If you know another way for make registrations with admin approval activation just tell me the way. And i'll change back that .php settings .. *** OK now i fixed it and dont get that page error but still no mail.. I think its about e-mail configraton.. when i write there my mail and test mail it errors me; Hata: Lütfen yapılandırmanızı kontrol edinSending failed using mail() as PHP's default mail() function returned boolean FALSE. Edited July 24, 2015 by mormorymor (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted July 25, 2015 Share Posted July 25, 2015 Hack? If you know another way for make registrations with admin approval activation just tell me the way. And i'll change back that .php settings .. *** OK now i fixed it and dont get that page error but still no mail.. I think its about e-mail configraton.. when i write there my mail and test mail it errors me; Hata: Lütfen yapılandırmanızı kontrol edin Sending failed using mail() as PHP's default mail() function returned boolean FALSE. do you get this error when send test email back office-->advanced parms-->email (send a test email)? Link to comment Share on other sites More sharing options...
mormorymor Posted July 25, 2015 Share Posted July 25, 2015 do you get this error when send test email back office-->advanced parms-->email (send a test email)? back office-->advanced parms-->email ? I'dont know here but there's one option menu called E-Mail in admin panel where you change phpmail function or smtp Types. and test mail.. when i chose php mail function it gives that error. Link to comment Share on other sites More sharing options...
El Patron Posted July 25, 2015 Share Posted July 25, 2015 back office-->advanced parms-->email ? I'dont know here but there's one option menu called E-Mail in admin panel where you change phpmail function or smtp Types. and test mail.. when i chose php mail function it gives that error. Hi, contact your hosting and explain the issue, as it does not seem that php's mail function is enabled on your server. for more info see this post https://www.prestashop.com/forums/topic/246494-solvedemail-problems/ Link to comment Share on other sites More sharing options...
spiralciric Posted May 21, 2018 Share Posted May 21, 2018 Does anyone know how to achieve this in 1.7? There is no $customer->active = 1; Link to comment Share on other sites More sharing options...
krupers Posted August 8, 2018 Share Posted August 8, 2018 1.7.x has new method to do it: INSIDE: classes/Customer.php there is entry (close to line 112-113): /** @var bool Status */ public $active = true; There is required only to replace "true" with statement "false" and by default all users are inactive. Greetings, Artur. 1 Link to comment Share on other sites More sharing options...
Deragos Webdesign Posted July 17, 2020 Share Posted July 17, 2020 Thanks! This works. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now