Results 1 to 6 of 6

Thread: How to force user to logout after registration?

  1. #1
    Thread Starter
    azamic's Avatar
    Join Date
    Nov 2012
    Location
    Switzerland
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to force user to logout after registration?

    Hi all,

    I am using Classipress 3.3. on WP 3.6.

    I am trying to implement SMS verification to authenticate new users. I have set the option for user to choose his/her own password during registration. By default the users are logged in automatically once they register. I want to put some sort of redirect to force newly registered users to logout and land at login page (where the SMS verification script will be waiting for non-verified users).

    I have tried using wp_logout_url() in tpl-registration.php. Unrfortunately, it does half the job by redirecting the user to a logout confirmation screen (since the wpnonce generated is not current). I want users to simply get logged out without any prompt once they click 'Register' and land on the login page.

    Thanks.

  2. #2
    seoagent's Avatar
    Join Date
    Jul 2012
    Location
    Edmonton, AB, Canada
    Posts
    660
    Thanks
    136
    Thanked 86 Times in 74 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    When in doubt: Read, Ask, Do. G+

  3. #3
    Thread Starter
    azamic's Avatar
    Join Date
    Nov 2012
    Location
    Switzerland
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    seoagent's Avatar
    Join Date
    Jul 2012
    Location
    Edmonton, AB, Canada
    Posts
    660
    Thanks
    136
    Thanked 86 Times in 74 Posts

    Try this.

    You must be an AppThemes customer and logged in to view this response. Join today!
    When in doubt: Read, Ask, Do. G+

  5. #5
    Thread Starter
    azamic's Avatar
    Join Date
    Nov 2012
    Location
    Switzerland
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  6. #6
    seoagent's Avatar
    Join Date
    Jul 2012
    Location
    Edmonton, AB, Canada
    Posts
    660
    Thanks
    136
    Thanked 86 Times in 74 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    When in doubt: Read, Ask, Do. G+

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Jomark How to force login/registration upon job application
    By leejacksondev in forum JobRoller General Discussion
    Replies: 17
    Last Post: November 19th, 2014, 12:59 PM
  2. [SOLVED] Logout after registration
    By ajamm in forum Advanced Custom Fields
    Replies: 4
    Last Post: September 20th, 2012, 10:06 AM
  3. Facebook User Cannot Logout - CP 3.1.7
    By geowebonline in forum Report ClassiPress Bugs
    Replies: 4
    Last Post: March 20th, 2012, 11:51 AM
  4. [MOD NEEDED] Force disallow of spaces in registration name
    By doctorcilantro in forum ClassiPress General Discussion
    Replies: 0
    Last Post: March 3rd, 2011, 12:24 PM
  5. Where to edit Welcome, user! [My Dashboard | Logout]
    By j_hewitt in forum ClassiPress General Discussion
    Replies: 1
    Last Post: July 12th, 2010, 12:51 PM