Skip to content

Commit 3e4cc81

Browse files
authored
Removed duplicate generatePasswordResetLink (#242)
1 parent fd402a8 commit 3e4cc81

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

auth/email_action_links.js

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -31,28 +31,13 @@ admin
3131
.then((link) => {
3232
// Construct password reset email template, embed the link and send
3333
// using custom SMTP server.
34-
return sendCustomPasswordResetEmail(email, displayName, link);
34+
return sendCustomPasswordResetEmail(userEmail, displayName, link);
3535
})
3636
.catch((error) => {
3737
// Some error occurred.
3838
});
3939
// [END password_reset_link]
4040

41-
// [START email_verification_link]
42-
// Admin SDK API to generate the password reset link.
43-
const email = 'user@example.com';
44-
admin
45-
.auth()
46-
.generatePasswordResetLink(email, actionCodeSettings)
47-
.then((link) => {
48-
// Construct password reset email template, embed the link and send
49-
// using custom SMTP server.
50-
return sendCustomPasswordResetEmail(email, displayName, link);
51-
})
52-
.catch((error) => {
53-
// Some error occurred.
54-
});
55-
5641
// [START email_verification_link]
5742
// Admin SDK API to generate the email verification link.
5843
const useremail = 'user@example.com';

0 commit comments

Comments
 (0)