Skip to content

Commit

Permalink
fixup! Polish the password recovery page
Browse files Browse the repository at this point in the history
  • Loading branch information
sandhose committed Jan 9, 2025
1 parent 20aa7ce commit 8a69c9a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
4 changes: 4 additions & 0 deletions crates/handlers/src/graphql/mutations/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,10 @@ impl UserMutations {
}

/// Resend a user recovery email
///
/// This is used when a user opens a recovery link that has expired. In this
/// case, we display a link for them to get a new recovery email, which
/// calls this mutation.
pub async fn resend_recovery_email(
&self,
ctx: &Context<'_>,
Expand Down
4 changes: 4 additions & 0 deletions frontend/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,10 @@ type Mutation {
setPasswordByRecovery(input: SetPasswordByRecoveryInput!): SetPasswordPayload!
"""
Resend a user recovery email
This is used when a user opens a recovery link that has expired. In this
case, we display a link for them to get a new recovery email, which
calls this mutation.
"""
resendRecoveryEmail(
input: ResendRecoveryEmailInput!
Expand Down
8 changes: 7 additions & 1 deletion frontend/src/gql/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,13 @@ export type Mutation = {
lockUser: LockUserPayload;
/** Remove an email address */
removeEmail: RemoveEmailPayload;
/** Resend a user recovery email */
/**
* Resend a user recovery email
*
* This is used when a user opens a recovery link that has expired. In this
* case, we display a link for them to get a new recovery email, which
* calls this mutation.
*/
resendRecoveryEmail: ResendRecoveryEmailPayload;
/** Send a verification code for an email address */
sendVerificationEmail: SendVerificationEmailPayload;
Expand Down

0 comments on commit 8a69c9a

Please sign in to comment.