Is there a way to use "Users Reset Password" without using the "Email" feature #11889
Replies: 2 comments 2 replies
-
In email settings, it would be nice if the tenant doesn't set SMTP settings it fallbacks to the default tenant SMTP settings. May be the simplest way is set the settings in each tenant - except default one - with main SMTP settings. This way the UI will populate the SMTP settings, unless you need to override them |
Beta Was this translation helpful? Give feedback.
-
Right now, I think you will need to use the Email feature in Orchard Core to achieve your goal. Else, we will need to think about having these settings taken from a global appsettings.json or tenant appsettings.json file from the Email feature. Right now, it is saved in the database in the SiteSettings per Tenant. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using OrchardCore in a SaaS environment. I have a default feature that I want to enable for all of my tenants that would provide
SmtpSettings
settings from theappsettings.json
file. This way by default all of my tenants would have a way to send notification to the user without providing custom settings. Here is the only services that my feature registerThe problem now is that I need to also enable
Users Reset Password
feature to allow users to reset their password. However, theUsers Reset Password
feature depends onEmail
feature which is what I am trying to avoid exposing by default. The issue with theEmail
feature is that it provides a user interface to configure the EmailService settings. The Email UI is great, but in my case I don't want to enable it by default since not all tenants need to provide their own email settings. If a tenant does not want to use custom email settings, then they don't need that feature.How can I use the
Users Reset Password
feature and use my own implementation ofISmtpService
instead of the build inEmail
feature? It would be nice if there is a way to separate UI from service registration.Beta Was this translation helpful? Give feedback.
All reactions