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

Automatically login a user after they have registered on your website via a Gravity Form

This plugin is part of Gravity Perks, a suite of 32+ essential Gravity Forms addons with support you can count on.

  • View All Perks
  • Buy Gravity Perks

What does it do?

This plugin 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 extra effort.

Features

  • Automatically log the user in after they have registered.
    Save your users time and effort.
  • Compatible with existing Form Confirmation.
    Auto login happens behind the scenes.
  • Redirect after login.
    Redirect the user to another page after automatic login.
  • Integrates with Gravity Forms Better User Activation.
    Automatically log users in after they activate with Gravity Forms Better User Activation, also part of the Gravity Perks plugin suite.
  • Automatic updates.
    Get updates and the latest features right in your dashboard.
  • Awesome support.
    We’re here to help! And we mean it.

Documentation

  1. How do I enable this functionality?
  2. Feature Details
    1. Redirect After Login
    2. User Activation
  3. Known Limitations
  4. FAQs
    1. Does this work with PayPal Standard?
  5. Hooks

How do I enable this functionality?

This perk requires the Gravity Forms User Registration Add-On. Assuming this add-on is installed and activated, go ahead and navigate to the User Registration page. On the User Registration page, follow the steps below to enable Auto Login.

Create a new registration feed or edit an existing feed.
Name your feed and select Create User. Skip this step if editing an existing feed.
Scroll to the bottom of the feed and check Automatically log the user in once they are registered.

With this option enabled, any user that is registered from this feed will automatically be logged in when the form is submitted.


Feature Details

Redirect 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

User Activation

If User Activation is turned on for your feed, GF Auto Login will automatically log the user in after they have activated their account, with 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.

GF Auto Login automatically integrates with GF Better User Activation, which you can use to customize the activation page and indicate to the user that they have been logged in.

Known Limitations

  • As of GF Auto Login 2.0, auto-login will only work for up to 24 hours after the initial registration. This can be extended if needed. Contact Support for details.

FAQs

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.

Hooks

  • gpal_auto_login_on_redirect_redirect_url
  • gpal_post_auto_login
  • gpal_pre_auto_login
Gravity Forms has hundreds of hooks. Check out our Gravity Forms Hook Reference for the most thorough guide to Gravity Forms’ many actions and filters.

Perk Deets

  • Version 2.1
  • Updated October 6, 2020
  • Released January 19, 2013
  • View Changelog

Changelog

2.1

  • Added support for GF User Registration 4.6.

2.0

  • Added support for secure auto-login when password has not yet been specified.
  • Added support for Gravity Forms 2.5.
  • Updated plugin to use the GP_Plugin framework.
  • Fixed issue where password used to set auth cookie was not always correct.
  • Fixed issue where Gravity Perks version requirement was not honored.

1.3.5

  • Added ability to override the auto login logic with a new 'gpal_auto_login' filter.
  • Updated plugin author.

1.3.4

  • Added support for redirecting to Better User Activation redirect URL.

1.3.3

  • Fixed notice generated when empty password was decrypted via GFCommon::openssl_decrypt().

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 Date Time Calculator
  • GF Disable Entry Creation
  • GF Easy Passthrough
  • GF eCommerce Fields
  • GF Email Users
  • GF Expand Textareas
  • GF File Upload Pro
  • 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 Populate Anything
  • 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 © 2021 · Powered by WordPress · Gravity Wiz LLC

  • Support
  • Affiliates
  • About
  • Sitemap
  • Gravity Perks
    ▼
    • Gravity Perks
    • Tutorials & Snippets
    • About
  • Support
    ▼
    • Documentation
    • Support
    • Account