Giter Site home page Giter Site logo

Comments (6)

priyasharma1 avatar priyasharma1 commented on June 16, 2024 1

Thanks for all the help @lbalmaceda. I will try to handle this case on our application side.

from auth0-java.

lbalmaceda avatar lbalmaceda commented on June 16, 2024

The reset password endpoint, which actually just sends a reset password email to the owner, won't fail even if the email doesn't belong to a valid user. This is to prevent email enumeration. When you're doing log in instead, your IP would be blocked if you try several times with a wrong email/password combination.

from auth0-java.

priyasharma1 avatar priyasharma1 commented on June 16, 2024

Thanks for the reply @lbalmaceda!
But then how will we be able to find out whether the mail was sent successfully or not.

As the logs generated are as follows
screenshot from 2018-01-29 18-50-25

from auth0-java.

lbalmaceda avatar lbalmaceda commented on June 16, 2024

There's no way for you to know that from the app you're calling the endpoint, no. The error you attached is that no user with that email exists so the call to the reset endpoint fails. But if for some reason the user exists and the email fails to be sent, the error you get in the dashboard would be a different one, talking about the email provider issue.

from auth0-java.

priyasharma1 avatar priyasharma1 commented on June 16, 2024

That's right if the email fails even when the user exists, then it's considerable that the error is not returned.
But in case the user doesn't exist then the call should fail and an error should be returned.
What do you think?

from auth0-java.

lbalmaceda avatar lbalmaceda commented on June 16, 2024

This is just an implementation of the Authentication API. As you can see here the endpoint itself doesn't return other than that status code 200. I suggest you contact https://support.auth0.com and open a feature request if that's your concern.

from auth0-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.