Skip to content

A full-featured CRM built with React, shadcn/ui, and Supabase.

[no ci] update docs following rebase

Jean-Baptiste Kaiserac70e9c2752f
diff --git a/README.md b/README.md
index 8d672a21..7d4e36db 100644
--- a/README.md
+++ b/README.md
@@ -246,44 +246,11 @@ Create a new migration using the following command:
npx supabase db diff | npx supabase migration new <migration_name>
```
-### Password Reset When Forgotten
-If users forgot their password, they can request for a reset. Atomic CRM handle it for you. All the magic is done by the custom route `/forgot-password` and `/set-password` that you can find in the `CRM` component.
+### Password Reset
-If you want to update default configuration:
+If users forget their password, they can request for a reset. Atomic CRM handles it for you, using Supabase.
-#### Local development
-
-1. Go to your `config.toml` file
-2. In `[auth]` section set `site_url` to your application URL
-3. In `[auth]`, add the following URL in the `additional_redirect_urls = [{APPLICATION_URL}}/auth-callback"]`
-4. Add an `[auth.email.template.recovery]` section with the following option
-```
-[auth.email.template.recovery]
-subject = "Reset Password"
-content_path = "./supabase/templates/recovery.html"
-```
-
-In Recovery email template set the `auth-callback` redirection
-
-```HTML
-<html>
- <body>
- <h2>Reset Password</h2>
- <p><a href="{{ .ConfirmationURL }}/auth-callback">Reset your password</a></p>
- </body>
-</html>
-```
-
-Supabase provides an [Inbucket](https://inbucket.org/) instance that allows you to test your emails and configure your flow.
-
-#### Production
-
-This requires you to configure your supabase instance:
-
-1. Go to your dashboard Authentication section
-2. In URL Configuration, set Site URL to your application URL
-3. In URL Configuration, add the following URL in the Redirect URLs section: `YOUR_APPLICATION_URL/auth-callback`
-4. In Email Templates, change the `"{{ .ConfirmationURL }}"` to `"{{ .ConfirmationURL }}/auth-callback"`
+Please make sure to read and apply the [Login Callback](./doc/supabase-configuration.md#login-callback) and [Customizing Mail Template](./doc/supabase-configuration.md#customizing-mail-template) sections to properly configure the password reset feature.
## Email Features
@@ -292,4 +259,4 @@ Atomic CRM supports inbound email features:
- You can add a note to a contact by sending an email to a specific email address
- _More to come!_
-Learn more about their usage and setup in the [email features documentation](./doc/email-features.md).
\ No newline at end of file
+Learn more about their usage and setup in the [email features documentation](./doc/email-features.md).
diff --git a/doc/email-features.md b/doc/email-features.md
index 7dfbeb5f..50d689e7 100644
--- a/doc/email-features.md
+++ b/doc/email-features.md
@@ -26,7 +26,7 @@ To enable inbound email features, you need to create a webhook in Postmark.
Atomic CRM uses a Supabase Edge Function to handle the webhook and process the received emails. You need to configure your Supabase project to handle the incoming requests.
-In a terminal, after you have [linked your Supabase project](#using-an-existing-supabase-instance), run the following commands:
+In a terminal, after you have [linked your Supabase project](./supabase-configuration.md#using-an-existing-remote-supabase-instance), run the following commands:
```sh
npx supabase secrets set POSTMARK_WEBHOOK_USER=<user>
diff --git a/doc/github-actions.md b/doc/github-actions.md
index 42dce60f..d578410d 100644
--- a/doc/github-actions.md
+++ b/doc/github-actions.md
@@ -13,7 +13,7 @@ SUPABASE_URL: Your supabase project URL
SUPABASE_ANON_KEY: Your supabase project anonymous key
POSTMARK_WEBHOOK_USER: User configured in Postmark to secure the webhook
POSTMARK_WEBHOOK_PASSWORD: Password configured in Postmark to secure the webhook
-POSTMARK_WEBHOOK_AUTHORIZED_IPS: List of IPs (comma separated) authorized to send requests to the webhook
+POSTMARK_WEBHOOK_AUTHORIZED_IPS: List of IPs (comma separated) authorized to send requests to the Postmark webhook
```
## Deploying to Another Repository