Can I disable auto login after user registration?

Author Message

Elena Ivanova

Thursday 23 December 2010 2:36:25 am

Is it possible to disable auto login after user registration?

I have a workflow for user approval. When newly registered user clicks on the activation link, received via email, the system login him/her automatically. But when there is a workflow for user approval, at the moment of activation the user object doesn't exists and the system logins him as noone and he/she doesn't have access to anything.

I found this topic http://share.ez.no/forums/general/sending-emails-on-approval-rejection#comment61904, where there is advice to remove user activation&email approval. I configured this by

 VerifyUserEmail=disabled

Now users don't need to click on the link to activate their accounts, but the system still login them automatically.

Could someone know how to prevent that auto login?

Thanks.

Heath

Sunday 26 December 2010 6:07:28 pm

Hello Elena,

I suggest creating a custom module view within an extension. You could base your view off a copy of the default user module view and edit it to not login the user during registration. Then change your templates to direct the user to this custom module view instead of the default.

This is what I would do if you need the feature you describe.

Cheers,

Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Elena Ivanova

Tuesday 28 December 2010 6:04:05 am

Hello Heath,

Thanks for your suggestion. I would try that (although I wish it were easier :-)

Kind regards,

Elena

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 00:44:55
Script start
Timing: Jan 30 2025 00:44:55
Module start 'layout'
Timing: Jan 30 2025 00:44:55
Module start 'content'
Timing: Jan 30 2025 00:44:55
Module end 'content'
Timing: Jan 30 2025 00:44:55
Script end

Main resources:

Total runtime0.0144 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0044 588.2813151.2266
Module start 'layout' 0.00450.0021 739.507836.6875
Module start 'content' 0.00660.0063 776.195390.2344
Module end 'content' 0.01290.0015 866.429733.9766
Script end 0.0144  900.4063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002517.6309140.0002
Check MTime0.00117.6609140.0001
Mysql Total
Database connection0.00064.429710.0006
Mysqli_queries0.001711.698230.0006
Looping result0.00000.076110.0000
Template Total0.00128.010.0012
Template load0.00096.339910.0009
Template processing0.00021.645410.0002
Override
Cache load0.00074.555510.0007
General
dbfile0.001913.156580.0002
String conversion0.00000.061240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs