<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Automatic activate and login user</title>
		<link>https://legacy.forums.gravityhelp.com/topic/automatic-activate-and-login-user</link>
		<description>Gravity Support Forums Topic: Automatic activate and login user</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 10:45:36 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/automatic-activate-and-login-user" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Automatic activate and login user"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatic-activate-and-login-user#post-129424</link>
			<pubDate>Wed, 23 Jan 2013 09:29:58 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">129424@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I just looked at a site of mine where I implemented auto-login after registration with the User Registration add-on.  I added this to my theme's functions.php:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
add_action(&#38;quot;gform_user_registered&#38;quot;, &#38;quot;autologin&#38;quot;, 10, 4);
function autologin($user_id, $config, $entry, $password) {
	wp_set_auth_cookie($user_id, false, &#38;#39;&#38;#39;);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;That was in conjunction with this topic:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/form-direct-to-private-page-with-auto-login#post-97328&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/form-direct-to-private-page-with-auto-login#post-97328&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Automatic activate and login user"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatic-activate-and-login-user#post-127919</link>
			<pubDate>Mon, 21 Jan 2013 20:06:39 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">127919@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Autologging in the user will be a WordPress function.  You can run it at the correct time using a Gravity Forms hook.  You need to find a function which works for you, and once you find one that works, we will help you integrate it with Gravity Forms.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>skot1708 on "Automatic activate and login user"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatic-activate-and-login-user#post-125250</link>
			<pubDate>Fri, 18 Jan 2013 09:11:09 +0000</pubDate>
			<dc:creator>skot1708</dc:creator>
			<guid isPermaLink="false">125250@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;So any workarounds?&#60;/p&#62;
&#60;p&#62;I'm sorry I have a bit timepressure getting this work. For normal I'm a very patient person ;)&#60;/p&#62;
&#60;p&#62;Regards
&#60;/p&#62;</description>
		</item>
		<item>
			<title>skot1708 on "Automatic activate and login user"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatic-activate-and-login-user#post-124156</link>
			<pubDate>Thu, 17 Jan 2013 04:03:36 +0000</pubDate>
			<dc:creator>skot1708</dc:creator>
			<guid isPermaLink="false">124156@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;No. I'm still not able to login and register user at once. The code snippet for the function.php I've posted doesn't work.&#60;/p&#62;
&#60;p&#62;If you could help me with that, this would be great.&#60;/p&#62;
&#60;p&#62;Thanks&#60;/p&#62;
&#60;p&#62;Sascha
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Automatic activate and login user"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatic-activate-and-login-user#post-123916</link>
			<pubDate>Wed, 16 Jan 2013 23:18:16 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">123916@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Looks like nice work.  Are all your issues resolved now?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>skot1708 on "Automatic activate and login user"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatic-activate-and-login-user#post-123740</link>
			<pubDate>Wed, 16 Jan 2013 19:34:23 +0000</pubDate>
			<dc:creator>skot1708</dc:creator>
			<guid isPermaLink="false">123740@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ok there's only one registration form left. It's on top of the &#34;event&#34; page, required fields are username and email after the user submits(Anmelden) the form, the user should be auto logged in. I deleted the snipped inside the function.php  so we start from 0.&#60;/p&#62;
&#60;p&#62;Thanks&#60;/p&#62;
&#60;p&#62;Edit: Ok you can have a look, I fixed everything
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Automatic activate and login user"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatic-activate-and-login-user#post-123694</link>
			<pubDate>Wed, 16 Jan 2013 17:55:05 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">123694@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;It sounds like we're attempting to tackle several issues at once, which means none of them may get the attention they require.&#60;/p&#62;
&#60;p&#62;So, let's work on the auto login.  What form can I use where your auto login function should run, so we can see if we can figure out why that is not working?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>skot1708 on "Automatic activate and login user"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatic-activate-and-login-user#post-123627</link>
			<pubDate>Wed, 16 Jan 2013 15:29:22 +0000</pubDate>
			<dc:creator>skot1708</dc:creator>
			<guid isPermaLink="false">123627@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I uploaded the site @ &#60;a href=&#34;http://www.generationlounge.de&#34; rel=&#34;nofollow&#34;&#62;http://www.generationlounge.de&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Site is still in progress and not finished. You could see two forms there,&#60;br /&#62;
one for the Event registration, with a registerfield at top and the second for a frontend posting.&#60;/p&#62;
&#60;p&#62;I want to merge this two forms cause it might be a bit confusing for the user
&#60;/p&#62;</description>
		</item>
		<item>
			<title>skot1708 on "Automatic activate and login user"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatic-activate-and-login-user#post-123623</link>
			<pubDate>Wed, 16 Jan 2013 15:19:52 +0000</pubDate>
			<dc:creator>skot1708</dc:creator>
			<guid isPermaLink="false">123623@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I used this for the function.php&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_action( &#38;#39;gform_user_registered&#38;#39;, &#38;#39;pi_gravity_registration_autologin&#38;#39;, 10, 4 );
/**
 * Auto login after registration.
 */
function pi_gravity_registration_autologin( $user_id, $user_config, $entry, $password ) {
	$user = get_userdata( $user_id );
	$user_login = $user-&#38;gt;user_login;
	$user_password = $password;

    wp_signon( array(
		&#38;#39;user_login&#38;#39; =&#38;gt; $user_login,
		&#38;#39;user_password&#38;#39; =&#38;gt;  $user_password,
		&#38;#39;remember&#38;#39; =&#38;gt; false
    ) );
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Automatic activate and login user"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatic-activate-and-login-user#post-123621</link>
			<pubDate>Wed, 16 Jan 2013 15:15:58 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">123621@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;So, your main issue now is that you want to log the user in automatically at some point?&#60;/p&#62;
&#60;p&#62;What code did you try use?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
