Sha256: 7b98f08e5555973252d002360978f69b9f18fccf143e168b83a34c56a2d769af

Contents?: true

Size: 981 Bytes

Versions: 8

Compression:

Stored size: 981 Bytes

Contents

Nyauth.configure do |config|
  config.encryption_secret = ENV['NYAUTH_ENCRYPTION_SECRET']
  config.confirmation_expire_limit = 1.hour
  config.reset_password_expire_limit = 1.hour
  config.redirect_path do |urls|
    # config.redirect_path_after_sign_in = -> (client_name) {
    #  if client_name == :admin
    #    urls.admin_secret_notes_path
    #  else
    #    urls.root_path
    #  end
    #}
    # config.redirect_path_after_sign_in = -> (client_name) {}
    # config.redirect_path_after_sign_out = -> (client_name) {}
    # config.redirect_path_after_registration = -> (client_name) {}
    # config.redirect_path_after_create_request_confirmation = -> (client_name) {}
    # config.redirect_path_after_update_confirmation = -> (client_name) {}
    # config.redirect_path_after_reset_password_request = -> (client_name) {}
    # config.redirect_path_after_reset_password = -> (client_name) {}
    # config.redirect_path_after_update_password = -> (client_name) {}
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
nyauth-0.4.0 lib/generators/nyauth/templates/nyauth_install_initializer.rb
nyauth-0.3.0 lib/generators/nyauth/templates/nyauth_install_initializer.rb
nyauth-0.2.8 lib/generators/nyauth/templates/nyauth_install_initializer.rb
nyauth-0.2.7 lib/generators/nyauth/templates/nyauth_install_initializer.rb
nyauth-0.2.6 lib/generators/nyauth/templates/nyauth_install_initializer.rb
nyauth-0.2.5 lib/generators/nyauth/templates/nyauth_install_initializer.rb
nyauth-0.2.4 lib/generators/nyauth/templates/nyauth_install_initializer.rb
nyauth-0.2.3 lib/generators/nyauth/templates/nyauth_install_initializer.rb