Skip to content

Conversation

@nole2701
Copy link
Collaborator

@nole2701 nole2701 commented Nov 7, 2025

Finished local user accounts up until re-doing uploads. User experience should be exactly the same as with cognito. I will post the new .env file on Slack.

Currently working:

  • Logins
  • Signups
  • Password Resets

Not working:

  • Uploads as current S3 upload method is directly tied to cognito.

As for testing the tokens for user actions like editing comments, there's currently a migration problem with pages which prevents me from doing that. But after logging in, the AccountMenu component properly displays the email of the user. This means the access token successfully passed through the stack following the same path as cognito tokens and returned UserInfo.

Also, the dailp.noreply@gmail.com email is tied by 2FA to my phone (required for App password) so we would probably want to find a way to have it tied to our organisation.

@netlify
Copy link

netlify bot commented Nov 7, 2025

Deploy Preview for dailp failed.

Name Link
🔨 Latest commit faffde3
🔍 Latest deploy log https://app.netlify.com/projects/dailp/deploys/691c593a721baf0008b6b43d

@@ -0,0 +1,82 @@
use anyhow::{Context, Result};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The password change system works well, but I noticed that the new password is allowed to be the same as the old one. You could consider adding a check for that and displaying a message for the user when that occurs.

let verification_code = db.create_email_verification_token(user_id).await?;

// Send verification email
email::send_verification_email(&input.email, &verification_code).await?;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like signup would fail if the verification email doesn't send successfully? You could consider adding a retry/resend option

Copy link
Collaborator

@alisony755 alisony755 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested it and it works with the updated .env file!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants