lib/nyauth/configuration.rb in nyauth-0.7.1 vs lib/nyauth/configuration.rb in nyauth-0.7.2
- old
+ new
@@ -13,11 +13,12 @@
:reset_password_expire_limit,
:password_minium,
:password_digest_stretches,
:encryption_secret,
:mail_delivery_method,
- :use_cookie_auth
+ :use_cookie_auth,
+ :mailer_sender
def initialize
@redirect_path_after_sign_in = Proc.new {}
@redirect_path_after_sign_out = Proc.new {}
@@ -32,9 +33,10 @@
@password_minium = 8
@password_digest_stretches = 1000
@encryption_secret = ENV['NYAUTH_ENCRYPTION_SECRET']
@mail_delivery_method = :deliver_now
@use_cookie_auth = false
+ @mailer_sender = 'from@example.com'
@redirect_path_block = Proc.new {}
end
def redirect_path(&block)
@redirect_path_block = block