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.