Nurse Password Reset
MedTrack supports password reset for nurses. This guide will walk you through the process of resetting your password.
Before you continue, make sure you have a valid nurse account. See Create a Nurse Account for more information.
Password Reset Process
The password reset process consists of two steps:
- Request a password reset link.
- Reset the password using the link.
1. Request a Password Reset Link
To request a password reset link, the nurse needs to provide their email address. This can be done using the following GraphQL mutation:
Details
mutation NurseRequestPasswordReset($email: String!) {
nurseRequestPasswordReset(email: $email) {
message
status
}
}
Variables:
{
"email": "nurse_email"
}
Response
{
"data": {
"nurseRequestPasswordReset": {
"message": "Password reset link sent to your email.",
"status": "success"
}
}
}
Once the request is successful, the nurse will receive an email with a password reset link.
2. Reset the Password
Once the nurse receives the password reset link, they can reset their password. The link will direct them to a page where they can enter their new password. This can be done using the following GraphQL mutation:
Details
mutation NurseResetPassword($token: String!, $newPassword: String!) {
nurseResetPassword(token: $token, newPassword: $newPassword) {
message
status
}
}
**Variables
{
"token": "password_reset_token",
"newPassword": "new_password"
}
Response
{
"data": {
"nurseResetPassword": {
"message": "Password reset successful.",
"status": "success"
}
}
}