A full-featured CRM built with React, shadcn/ui, and Supabase.
Merge branch 'main' into feat/forgot-password
Anthony Rimetcac961c3efae
diff --cc README.mdindex 2f045406,f1444a17..b11c326e--- a/README.md+++ b/README.md@@@ -101,30 -101,8 +101,35 @@@ SUPABASE_DB_PASSWORD: Your supabase datSUPABASE_PROJECT_ID: Your supabase project id```+ You will also need to configure the following environment variables to deploy to GH pages:+ ```bash+ GIT_USER_NAME: The deploy account's name+ GIT_USER_EMAIL: The deploy user's email-```++```+++## Supabase++### 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 `/reset-password` that you can find in the `CRM` component.++If you want to update default configuration:++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.templace.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>- ```++</html>