# Same login behavior for non existing users

**URL:** <https://community.auth0.com/t/same-login-behavior-for-non-existing-users/81135>\
**Category:** Get Help\
**Tags:** login, auth0\
**Created:** [April 5, 2022, 9:22am UTC](https://community.auth0.com/t/same-login-behavior-for-non-existing-users/81135 "2022-04-05T09:22:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexandre2](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alexandre2/32/36392_2.png) [@alexandre2](https://community.auth0.com/u/alexandre2)\
**Post date:** [April 5, 2022, 9:22am UTC](https://community.auth0.com/t/same-login-behavior-for-non-existing-users/81135/1 "2022-04-05T09:22:00Z")

</div>

Hi

We are using Auth0 with password less (user receive a pincode in their email).

A user is able to enter an email and got different response if the user exist or not.  
With this, a user can narrow registered user list and then be able to proceed a targeted attack.

So, is there a way for password less authentication to always return “An email with the code has been sent to xxx”.  
This way an attacker can’t guess a valid account.

Thanks

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [April 5, 2022, 9:29pm UTC](https://community.auth0.com/t/same-login-behavior-for-non-existing-users/81135/3 "2022-04-05T21:29:36Z")

</div>

Hi @alexandre2,

Welcome to the Auth0 Community!

I understand that you have questions about obfuscating the error message when a user logs in with Passwordless Email Authentication.

To do so, you can modify the `languageDictionary`’s Passwordless error message in your custom Universal login page. See below:

```auto
var lock = new Auth0Lock(config.clientID, config.auth0Domain, {
  //...
  languageDictionary : {
    error: {
      passwordless: {
        'bad.email': 'The email is invalid',
        'bad.phone_number': 'The phone number is invalid',
        'lock.fallback': "We're sorry, something went wrong"
      }
    }
  //... code redacted for brevity
}

```

Please see the [languageDictionary object](https://github.com/auth0/lock/blob/master/src/i18n/en.js) for the complete list of available properties.

Please let me know if there’s anything else I can do to help.

Thank you.

---

<div class="post-metadata">

**Author:** ![alexandre2](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alexandre2/32/36392_2.png) [@alexandre2](https://community.auth0.com/u/alexandre2)\
**Post date:** [April 12, 2022, 9:14am UTC](https://community.auth0.com/t/same-login-behavior-for-non-existing-users/81135/4 "2022-04-12T09:14:24Z")

</div>

Thanks.

But your solution is just “cosmetic”, right ?

If I look into network activity, when I try to log with a non registered email

 ![image](https://global.discourse-cdn.com/auth0/original/3X/3/1/31ca7ffa2e9288e89e4a8c223f57bc7fe466afcd.png)

So I can understand that this email is not registered.

I don’t want someone to be able to guess a registered email.

Thanks

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [April 13, 2022, 6:59pm UTC](https://community.auth0.com/t/same-login-behavior-for-non-existing-users/81135/5 "2022-04-13T18:59:21Z")

</div>

Hi @alexandre2,

Thank you for your response.

I have looked into your observations further and found the same results. Whenever a valid email address is submitted for a Passwordless email code, there will be the _“An email with the code has been sent to EMAIL\_ADDRESS”_ message.

In this case, yes, someone could target an attack on the users. With that, I recommend enabling[Attack Protection features](https://auth0.com/docs/secure/attack-protection) such as [Bot Detection](https://auth0.com/docs/secure/attack-protection/bot-detection), [Brute Force Protection](https://auth0.com/docs/secure/attack-protection/brute-force-protection), and [Suspicious IP Throttling](https://auth0.com/docs/secure/attack-protection/suspicious-ip-throttling).

This way, your users can be protected from attacks and malicious attempts to access your application such as blocking traffic from certain IPs and displaying CAPTCHA.

Please let me know how this works for you.

Thank you.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 21, 2022, 3:45pm UTC](https://community.auth0.com/t/same-login-behavior-for-non-existing-users/81135/6 "2022-12-21T15:45:57Z")

</div>


