mikker / passwordless

๐Ÿ— Authentication for your Rails app without the icky-ness of passwords
MIT License
1.26k stars 85 forks source link

User defined redirect_to options #142

Closed bcasci closed 1 year ago

bcasci commented 1 year ago

This PR introduces a configuration settings that a host application can use to specify the redirect_to response_options.

# config/initializers/passwordless.rb

Passwordless.redirect_to_response_options = { allow_other_host: true, notice: 'Hello!' }

The setting is used in the Passwordless::SessionsController#show action

bcasci commented 1 year ago

This is for addressing #140

mikker commented 1 year ago

Thank you for this โค๏ธ๐Ÿงก๐Ÿ’›๐Ÿ’š๐Ÿ’™๐Ÿ’œ