Skip to content
Discussion options

You must be logged in to vote

@dosubot i tried to patch the otp plugin to do the same thing when using requestPasswordReset endpoint that returns a 200 but uses the logger to print 2025-08-13T16:22:02.249Z ERROR [Better Auth]: Reset Password: User not found { email: "john.doe@example.com", } but when i hit the /forget-password/email-otp it returns a 200 but does not log like the requestPasswordReset. any idea why?

i also added the maskusernotfoundonforgetpassword and set it to false by default.

async (ctx) => {
    const email = ctx.body.email;
  const user = await ctx.context.internaladapter.finduserbyemail(email);
  if (!user) {
    if (opts.maskusernotfoundonforgetpassword) {	
      opts.generateotp(
        { emai…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@chanithecat
Comment options

@dosubot
Comment options

@chanithecat
Comment options

@dosubot
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dosubot
Comment options

Answer selected by chanithecat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant