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

add 'VERIFY_AND_CHANGE_EMAIL' linkType for generateEmailActionLink #498

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from

Conversation

tyahha
Copy link

@tyahha tyahha commented May 20, 2022

After doing FR in Issue, I was asked to do PR, so I created a test and responded to the request.

#470

tyahha@2d00814#commitcomment-72875565

Copy link

@prameshj prameshj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, except for a few small nits. Thanks for sending this!


tenant, err := extractTenantID(link)
if err != nil {
t.Fatalf("VerifyAndChangeEmailLink() = %v", err)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: t.Fatalf("extractTenantID(%s) = %v", link, err)

"newEmail": testNewEmail,
}
if err := checkActionLinkRequestWithURL(want, wantEmailActionURL, s); err != nil {
t.Fatalf("VerifyAndChangeEmailLink() %v", err)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: t.Fatalf("checkActionLInkREquestWithURL() = %v", err)

want[k] = v
}
if err := checkActionLinkRequest(want, s); err != nil {
t.Fatalf("VerifyAndChangeEmailLinkWithSettings() %v", err)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: t.Fatalf(checkActionLinkRequest() = %v", err)

@prameshj
Copy link

prameshj commented Jun 6, 2022

@tyahha
Copy link
Author

tyahha commented Jun 8, 2022

@prameshj
Thank you for your review.
I have corrected your remarks and would appreciate a re-review.

@tyahha tyahha requested a review from prameshj June 8, 2022 23:13
@prameshj
Copy link

prameshj commented Jun 9, 2022

@lahirumaramba can you help with merging this? Thanks!

@lahirumaramba lahirumaramba self-assigned this Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants