|
|
|
@ -6,13 +6,13 @@ Devise.setup do |config|
|
|
|
|
# confirmation, reset password and unlock tokens in the database.
|
|
|
|
# confirmation, reset password and unlock tokens in the database.
|
|
|
|
# Devise will use the `secret_key_base` as its `secret_key`
|
|
|
|
# Devise will use the `secret_key_base` as its `secret_key`
|
|
|
|
# by default. You can change it below and use your own secret key.
|
|
|
|
# by default. You can change it below and use your own secret key.
|
|
|
|
# config.secret_key = 'cbe71dbfb7621e0dae495b43107ec6250d4ace32da7f80398990c6dd818d8a1c010077843595008d987f88d1c6042ac19ce981356bb09604fd381caf1ce20976'
|
|
|
|
config.secret_key = Rails.application.secret_key_base
|
|
|
|
|
|
|
|
|
|
|
|
# ==> Mailer Configuration
|
|
|
|
# ==> Mailer Configuration
|
|
|
|
# Configure the e-mail address which will be shown in Devise::Mailer,
|
|
|
|
# Configure the e-mail address which will be shown in Devise::Mailer,
|
|
|
|
# note that it will be overwritten if you use your own mailer class
|
|
|
|
# note that it will be overwritten if you use your own mailer class
|
|
|
|
# with default "from" parameter.
|
|
|
|
# with default "from" parameter.
|
|
|
|
config.mailer_sender = 'please-change-me-at-config-initializers-devise@example.com'
|
|
|
|
config.mailer_sender = "please-change-me-at-config-initializers-devise@example.com"
|
|
|
|
|
|
|
|
|
|
|
|
# Configure the class responsible to send e-mails.
|
|
|
|
# Configure the class responsible to send e-mails.
|
|
|
|
# config.mailer = 'Devise::Mailer'
|
|
|
|
# config.mailer = 'Devise::Mailer'
|
|
|
|
@ -24,7 +24,7 @@ Devise.setup do |config|
|
|
|
|
# Load and configure the ORM. Supports :active_record (default) and
|
|
|
|
# Load and configure the ORM. Supports :active_record (default) and
|
|
|
|
# :mongoid (bson_ext recommended) by default. Other ORMs may be
|
|
|
|
# :mongoid (bson_ext recommended) by default. Other ORMs may be
|
|
|
|
# available as additional gems.
|
|
|
|
# available as additional gems.
|
|
|
|
require 'devise/orm/active_record'
|
|
|
|
require "devise/orm/active_record"
|
|
|
|
|
|
|
|
|
|
|
|
# ==> Configuration for any authentication mechanism
|
|
|
|
# ==> Configuration for any authentication mechanism
|
|
|
|
# Configure which keys are used when authenticating a user. The default is
|
|
|
|
# Configure which keys are used when authenticating a user. The default is
|
|
|
|
@ -243,7 +243,6 @@ Devise.setup do |config|
|
|
|
|
|
|
|
|
|
|
|
|
# The default HTTP method used to sign out a resource. Default is :delete.
|
|
|
|
# The default HTTP method used to sign out a resource. Default is :delete.
|
|
|
|
config.sign_out_via = :delete
|
|
|
|
config.sign_out_via = :delete
|
|
|
|
|
|
|
|
|
|
|
|
# ==> OmniAuth
|
|
|
|
# ==> OmniAuth
|
|
|
|
# Add a new OmniAuth provider. Check the wiki for more information on setting
|
|
|
|
# Add a new OmniAuth provider. Check the wiki for more information on setting
|
|
|
|
# up on your models and hooks.
|
|
|
|
# up on your models and hooks.
|
|
|
|
|