Skip to content

Commit 8a69c9a

Browse files
committed
fixup! Polish the password recovery page
1 parent 20aa7ce commit 8a69c9a

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

crates/handlers/src/graphql/mutations/user.rs

+4
Original file line numberDiff line numberDiff line change
@@ -822,6 +822,10 @@ impl UserMutations {
822822
}
823823

824824
/// Resend a user recovery email
825+
///
826+
/// This is used when a user opens a recovery link that has expired. In this
827+
/// case, we display a link for them to get a new recovery email, which
828+
/// calls this mutation.
825829
pub async fn resend_recovery_email(
826830
&self,
827831
ctx: &Context<'_>,

frontend/schema.graphql

+4
Original file line numberDiff line numberDiff line change
@@ -805,6 +805,10 @@ type Mutation {
805805
setPasswordByRecovery(input: SetPasswordByRecoveryInput!): SetPasswordPayload!
806806
"""
807807
Resend a user recovery email
808+
809+
This is used when a user opens a recovery link that has expired. In this
810+
case, we display a link for them to get a new recovery email, which
811+
calls this mutation.
808812
"""
809813
resendRecoveryEmail(
810814
input: ResendRecoveryEmailInput!

frontend/src/gql/graphql.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,13 @@ export type Mutation = {
493493
lockUser: LockUserPayload;
494494
/** Remove an email address */
495495
removeEmail: RemoveEmailPayload;
496-
/** Resend a user recovery email */
496+
/**
497+
* Resend a user recovery email
498+
*
499+
* This is used when a user opens a recovery link that has expired. In this
500+
* case, we display a link for them to get a new recovery email, which
501+
* calls this mutation.
502+
*/
497503
resendRecoveryEmail: ResendRecoveryEmailPayload;
498504
/** Send a verification code for an email address */
499505
sendVerificationEmail: SendVerificationEmailPayload;

0 commit comments

Comments
 (0)