Gravity Wiz

Magically enhanced tutorials, snippets and plugins for Gravity Forms!

  • Gravity Perks
    • Gravity Perks
    • Tutorials & Snippets
    • About
  • Support
    • Documentation
    • Support
    • Account

Gravity Forms Auto Login

This plugin is part of the Gravity Perks package. Buy Gravity Perks today to get this perk plus 29 other galactic Gravity Forms plugins!

Get Gravity Perks

What does it do?

The Auto Login perk allows you to automatically log the user in after they have registered (via a Gravity Form) to your site. Additionally, this perk maintains the existing form confirmation allowing you to display a text confirmation, redirect to a WordPress page, or redirect to a URL with no additional effort.

How do I enable this functionality?

This perk requires the User Registration Add-On for Gravity Forms. Assuming this add-on is installed and activated, go ahead and navigate to the User Registration page.

On the User Registration page, create a new registration feed as you normally would or edit an existing feed. Scroll to the bottom of your feed and look for the “Auto Login” option within the “Additional Options” group. Check the corresponding checkbox to enable the Auto Login functionality for this feed. With this option enabled, any user that is registered from this feed, will automatically be logged in when the form is submitted.

gp-auto-login-settingsGP Auto Login Settings
Does this work with PayPal Standard?
You’ve setup a PayPal Standard feed and enabled the “Delay User Registration” option. Here’s why this won’t work with GP Auto Login.

When the user returns to your site from PayPal, Gravity Forms does not actually know if the payment has been completed yet and therefore the user has not yet been registered. GP Auto Login cannot automatically log in the user until they are registered by the Gravity Forms User Registration add-on.

​PayPal notifies Gravity Forms when the payment is completed in a separate process called an IPN notification. In some cases, this IPN notification can happen instantly. In most cases, there is a minute or two delay. The trickiest part though is that this is a separate process, unattached to user’s current browsing session.

Redirecting After Login

The auto login functionality happens behind the scenes and the form’s configured confirmation settings are not impacted by enabling this feature. If you would like to redirect the user to another page after they have been automatically logged in, you can configure the URL to which the user should be redirected on the “Confirmation” tab of your Form Settings.

gp-auto-login-confirmation-exampleSetting Redirect URL via Confirmation

How does this work with GF User Registration “Pending Activations”?

With GP Auto Login v1.2, auto-login after the user has activated their account is now automatically supported (assuming the option is checked on the User Registration feed). There is one caveat. The default activation template packaged with Gravity Forms (and modeled after WordPress’ version) does not give any indication that the user is logged in.

If you’d like to create your own template that gives the user a confirmation of some sort, you can do so with this handy Gravity Wiz resource:

Customizing Gravity Forms User Registration Activation Page

Did this resource help you do something awesome with Gravity Forms? Then you'll absolutely love Gravity Perks; a package of 23 Gravity Forms plugins with premium support.

  • View All Perks
  • Buy Gravity Perks

Perk Deets

  • Version 1.3.2
  • Updated February 26, 2018
  • Released January 19, 2013
  • View Changelog

1.3.2

  • Fixed issue with GF 2.3; now using GFCommon::openssl_decrypt() instead of GFCommon::decrypt().

1.3.1

  • Updated to use GP_Bootstrap
  • Updated to use singleton pattern
  • Add gp_auto_login() to get plugin instance

1.3

  • Updated for compatability with GF User Registration 3.0
  • Deprecated several functions specific to earlier versions of GFUR

1.2.4

  • Added "gpal_pre_auto_login" and "gpal_post_auto_login" hooks

1.2.3

  • Fixed issue where auto login was failing in IE11 due to auth cookies being set multiple times
  • Fixed issue with encryption of password when auto login was applied with user activation

1.2.2

  • Fixed issue where auto login was not happening for activating users (due to headers_sent() unexpectedly returning false)

1.2.1

  • Updated minimum version of Gravity Forms to 1.8.9 to resolve fatal error with missing encrypt and decrypt functions

1.2

  • Added support for auto-login when user is activated (on GF activation page)
  • Added new filter: gpal_auto_login_on_redirect_redirect_url; provides ability to redirect to a specific URL after auto-login from activation page
  • Updated documentation and moved to GravityWiz.com

1.1

  • Fixed issue where is_user_logged_in() checks were not working on initial page load after auto-login

All Perks

  • GF Auto Login
  • GF Better User Activation
  • GF Blacklist
  • GF Conditional Logic Dates
  • GF Conditional Pricing
  • GF Copy Cat
  • GF Disable Entry Creation
  • GF eCommerce Fields
  • GF Email Users
  • GF Expand Textareas
  • GF Limit Checkboxes
  • GF Limit Choices
  • GF Limit Dates
  • GF Limit Submissions
  • GF Live Preview
  • GF Media Library
  • GF Multi-page Navigation
  • GF Nested Forms
  • GF Pay Per Word
  • GF PayPal One-time Fee
  • GF Placeholder
  • GF Post Content Merge Tags
  • GF Preview Submission
  • GF Price Range
  • GF Read Only
  • GF Reload Form
  • GF Terms Of Service
  • GF Unique ID
  • GF Word Count

Copyright © 2018 · Powered by WordPress · Gravity Wiz LLC · Log out

  • Support
  • Affiliates
  • About