Problem

Certain forms required a user to login.

Solution

Add per webform settings that redirects to login screen with a custom message.

Notes

Works identical to Redirect 403 to User Login but allow per Webform setting and message. Custom message per webform is the key difference and the specific requirement being sponsored by my client.

Tasks

  • Add 'form_login' and 'form_login_message' to webform settings
  • Add 'submission_login' and 'submission_login_message' to webform settings
  • 'default_form_login_message' to webform admin settings
  • 'default_submission_login_message' to webform admin settings
  • Update scheme.
  • Update export configuration.
  • Add EventSubscriber that redirects to login.
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jrockowitz created an issue. See original summary.

jrockowitz’s picture

Issue summary: View changes

  • jrockowitz committed 3f21557 on 2923047-redirect-login
    Issue #2923047: Redirect to user login when Access Denied for a Webform
    

  • jrockowitz committed 4e377b0 on 2923047-redirect-login
    Issue #2923047: Redirect to user login when Access Denied for a Webform
    
jrockowitz’s picture

Status: Active » Needs review
FileSize
167.28 KB

  • jrockowitz committed a84589e on 2923047-redirect-login
    Issue #2923047: Redirect to user login when Access Denied for a Webform...
jrockowitz’s picture

jrockowitz’s picture

Status: Needs review » Fixed

  • jrockowitz committed 1246012 on 8.x-5.x
    Issue #2923047 by jrockowitz: Redirect to user login when Access Denied...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.