diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index b938791d..3d5b0ff2 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -31,7 +31,6 @@ jobs: run: | # log level sed -i 's|RUST_LOG=.*|RUST_LOG=trace|' .env - sed -i 's/GOTRUE_SMTP_USER=.*/GOTRUE_SMTP_USER=${{ secrets.GOTRUE_SMTP_USER }}/' .env sed -i 's/GOTRUE_SMTP_PASS=.*/GOTRUE_SMTP_PASS=${{ secrets.GOTRUE_SMTP_PASS }}/' .env sed -i 's/GOTRUE_SMTP_ADMIN_EMAIL=.*/GOTRUE_SMTP_ADMIN_EMAIL=${{ secrets.GOTRUE_SMTP_ADMIN_EMAIL }}/' .env diff --git a/dev.env b/dev.env index c95f84f0..f7fe31f9 100644 --- a/dev.env +++ b/dev.env @@ -21,8 +21,11 @@ GOTRUE_SMTP_ADMIN_EMAIL=comp_admin@@some_company.com GOTRUE_ADMIN_EMAIL=admin@example.com GOTRUE_ADMIN_PASSWORD=password -# clicking on email verification link will redirect to this host -# change this to your own domain where you host the docker-compose or gotrue +# The email verification link provided to users will redirect them to this specified host. +# You should update this setting to reflect the domain where you are hosting your application with docker-compose or gotrue. +# If you're using an Nginx proxy as part of your setup, this host should be set to the domain managed by the proxy. +# For instance, if you're running your application locally using 'docker compose up -d', +# you can set this value to 'http://localhost'. API_EXTERNAL_URL=http://localhost:9998 # url to the postgres database diff --git a/libs/client-api/src/http.rs b/libs/client-api/src/http.rs index 75f4fa05..21fa0b6d 100644 --- a/libs/client-api/src/http.rs +++ b/libs/client-api/src/http.rs @@ -277,6 +277,7 @@ impl Client { let resp = reqwest::Client::new().get(action_link).send().await?; let html = resp.text().await.unwrap(); + trace!("action_link:{}, html: {}", action_link, html); let fragment = scraper::Html::parse_fragment(&html); let selector = scraper::Selector::parse("a").unwrap(); let sign_in_url = fragment diff --git a/tests/collab/workspace_collab.rs b/tests/collab/workspace_collab.rs index 77fc2a5c..77681f54 100644 --- a/tests/collab/workspace_collab.rs +++ b/tests/collab/workspace_collab.rs @@ -22,6 +22,8 @@ async fn edit_workspace_without_permission() { client_1.wait_object_sync_complete(&workspace_id).await; assert_client_collab(&mut client_1, &workspace_id, json!({"name": "AppFlowy"}), 3).await; + + /// client 2 has not permission to read/edit the workspace assert_client_collab(&mut client_2, &workspace_id, json!({}), 3).await; }