-
Notifications
You must be signed in to change notification settings - Fork 4
On-Premise User Accounts #526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
❌ Deploy Preview for dailp failed.
|
| @@ -0,0 +1,82 @@ | |||
| use anyhow::{Context, Result}; | |||
There was a problem hiding this comment.
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?; |
There was a problem hiding this comment.
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
alisony755
left a comment
There was a problem hiding this 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!
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:
Not working:
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.