Open duypv opened 2 weeks ago
@duypv You need be using admin email for the following env:
APPFLOWY_MAILER_SMTP_USERNAME=
APPFLOWY_MAILER_SMTP_PASSWORD=
which can be the same as:
GOTRUE_ADMIN_EMAIL=
GOTRUE_ADMIN_PASSWORD=
you mean it need to be same value?
Right now, magic link work but I can't invite other user.
@duypv Yes, you can use the same value (copy from GOTRUE_ADMIN_EMAIL
to APPFLOWY_MAILER_SMTP_USERNAME
).
Describe the bug Can't invite user to workspace
To Reproduce Steps to reproduce the behavior:
Screenshots
Log gotrue: { "component": "api", "error": "this token needs to have one of the following roles: service_role, supabase_admin", "level": "info", "method": "POST", "msg": "this token needs to have one of the following roles: service_role, supabase_admin", "path": "/admin/generate_link", "referer": "appflowy-flutter://", "remote_addr": "172.23.0.4", "request_id": "a73e40f6-1499-4497-8066-7a3b17870c7d", "time": "2024-11-08T05:42:51Z" }
Log Applowy cloud { "timestamp": "2024-11-08T04:56:44.118907Z", "level": "ERROR", "fields": { "error": "User not allowed" }, "target": "appflowy_cloud::api::workspace", "filename": "src/api/workspace.rs", "line_number": 329,