Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom SMTP Namespaces do not work with Password Reset Email Form #1387

Open
greyskin opened this issue Aug 10, 2021 · 1 comment
Open

Custom SMTP Namespaces do not work with Password Reset Email Form #1387

greyskin opened this issue Aug 10, 2021 · 1 comment

Comments

@greyskin
Copy link

The Locomotive CMS documentation references the following fields which allow a custom SMTP namespace in the metafields_schema.yml file:

Name Description
auth_email_smtp_namespace name of the site metafields namespace used to store your SMTP settings. Default: smtp
auth_email_smtp_address_alias name of the address property in the site metafields namespace. Default: address
auth_email_smtp_port_alias name of the port property in the site metafields namespace. Default: port
auth_email_smtp_user_name_alias name of the user_name property in the site metafields namespace. Default: user_name
auth_email_smtp_password_alias name of the user_name property in the site metafields namespace. Default: password

Using the auth template site here...

...and assuming the following in metafields_schema.yml:

smtp_settings:
  label: Outgoing Email
  fields:
    server:
      label: SMTP Server
      type: string

    username:
      label: Username
      type: string

    password:
      label: Password
      type: string

    port:
      label: Port
      type: string

...and the following data (replace with non-dummy) in site.yml:

metafields:
  smtp_settings:
    server: mailserveraddress.com
    username: [email protected]
    password: password
    port: 123

...and the following fields in on the forgot_password.liquid page:

<input type="hidden" name="auth_email_smtp_namespace" value="smtp_settings">
<input type="hidden" name="auth_email_smtp_address_alias" value="server">
<input type="hidden" name="auth_email_smtp_port_alias" value="port">
<input type="hidden" name="auth_email_smtp_user_name_alias" value="username">
<input type="hidden" name="auth_email_smtp_password_alias" value="password">

...we should be able to send a password reset email when a user registered to the site enters their email address in the Forgot Password form.

It doesn't work.

But if we use the default setup of the auth template site everything works as expected.

@greyskin
Copy link
Author

@did this might need to be moved to Steam?

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

No branches or pull requests

1 participant