Skip to content
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

Reset Password Email Sent To Admin #58

Open
Ritvik1121 opened this issue Feb 16, 2023 · 1 comment
Open

Reset Password Email Sent To Admin #58

Ritvik1121 opened this issue Feb 16, 2023 · 1 comment
Labels
enhancement New feature or request Research Task

Comments

@Ritvik1121
Copy link
Collaborator

Ritvik1121 commented Feb 16, 2023

Admins at SLOBG want to be able to reset user's passwords for them. Currently, users can reset their own passwords and they receive a code via email to do so. This is implemented with largely prebuilt AWS components.

This is a combined research and implementation task where you'll take a look at the reset password functionality and try to see if it is possible to modify it so that instead of sending an email to the user with a password reset request, it would send it to the admin . This way the admin's could help user's reset their password.

Some of the relevant code is located in login.jsx lines 16 - 68. The current way it's implemented is through aws amplify UI so you can mess around with it a bit to see if you can change the email that its being sent to.

In order to test this you will probably have to have two test accounts with one being an admin so you can go into the dynamo tables and make one the accounts an admin.

Some suggested steps

  1. Make a test admin and test user account
  2. Try resetting your password so you see how it works.
  3. Look at Login.jsx to see how forgot password is implemented (its using the AWS Header component)
  4. Research the Header component
  5. Do some research on AWS amplify UI (linked below) and how it interacts with forgot password functionality
  6. Create a new component for experimenting that uses the same components as the login page
  7. See if you can make the forgot password function send an email to your test admin account when you request a new password for you user account
  8. Using this code, reset the user's password
  9. Alternatively, see if there is a different prebuilt component which allows admin-defined users to reset user's passwords
@Ritvik1121 Ritvik1121 changed the title Validate Password Email To Admin Validate Password Email Sent To Admin Feb 16, 2023
@Ritvik1121 Ritvik1121 changed the title Validate Password Email Sent To Admin Reset Password Email Sent To Admin Feb 16, 2023
@bbmcmann
Copy link
Collaborator

@bbmcmann bbmcmann added Research Task enhancement New feature or request labels Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Research Task
Projects
None yet
Development

No branches or pull requests

2 participants