Skip to content
This repository has been archived by the owner on Nov 28, 2021. It is now read-only.

Custom auth settings override #17

Closed
pseudo-su opened this issue Jul 23, 2015 · 1 comment
Closed

Custom auth settings override #17

pseudo-su opened this issue Jul 23, 2015 · 1 comment

Comments

@pseudo-su
Copy link

I have spee using custom authentication with devise pretty much the same as this:
https://guides.spreecommerce.com/developer/authentication.html

Currently I have spree_mail_settings working for the settings of all of spree's emails but It doesn't seem to work for email outside of spree eg. user confirmation emails from devise

Is there a way I can override the devise mail settings to be the same as selected in spree_mail_settings admin?

@pseudo-su
Copy link
Author

After a bit of digging i've determined that the problem is only with the sender address not being used, all the other settings seem to be fine.
For anyone looking into this the closest i've got to a solution is to set

config.mailer_sender = Spree::Store.current.mail_from_address

in the devise.rb initializer but it does require a restart of the server for the changes made in the spee_mail_settings to take effect

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant