saleor / saleor-dashboard

A GraphQL-powered, single-page dashboard application for Saleor.
BSD 3-Clause "New" or "Revised" License
846 stars 1.11k forks source link

Configuration of storefront's password view URL #204

Closed maarcingebala closed 1 year ago

maarcingebala commented 5 years ago

Two changes related to creating new customers:

1) When creating customers we should be able to optionally send them emails to set up their password. Now, this happens automatically, but users might want to create customers without actually setting up their accounts (see #202). There should be some checkbox to decide whether an email with the password link should be sent.

2) When email sending in the case above is enabled, Dashboard needs to know what is the link of a view where customers can set up their passwords. We need to add a configuration field for that on the Site Settings page. The field should be called something like "Customer password reset URL".

@pwgryglak please update our designs with those changes. Backend issue is scheduled for the current sprint, once it's done we'll implement frontend changes.

maarcingebala commented 5 years ago

While fixing the customer create page, we could also fix the issue which now requires providing the customer's default address. I guess the issue is that the dashboard automatically adds it to the mutation, even if none of the address fields were provided. The address is optional in API and should be also optional in the UI.

maarcingebala commented 4 years ago

Implement "Password Reset" box - if the checkbox is checked, the mutation underneath should include resetUrl field which (in UserCreateInput) will trigger sending email to set the password.

image

Value of resetUrl field should be fetched with this query:

{
  shop {
    customerSetPasswordUrl
  }
}

If customerSetPasswordUrl is null, this checkbox should be inactive and there should be some notification that you need to first configure that URL to use this feature.

Note: our PWA storefront doesnt have a view to reset password yet (https://github.com/mirumee/saleor-storefront/issues/500), so there's no way to test this feature with a meaningful link.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.