# Warn the user before his last invalid credentials while login

**URL:** <https://devforum.okta.com/t/warn-the-user-before-his-last-invalid-credentials-while-login/21763>\
**Category:** API\
**Created:** [September 2, 2022, 10:06am UTC](https://devforum.okta.com/t/warn-the-user-before-his-last-invalid-credentials-while-login/21763 "2022-09-02T10:06:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lakshmanvadeghar](https://avatars.discourse-cdn.com/v4/letter/l/a9adbd/32.png) [@lakshmanvadeghar](https://devforum.okta.com/u/lakshmanvadeghar)\
**Post date:** [September 2, 2022, 10:06am UTC](https://devforum.okta.com/t/warn-the-user-before-his-last-invalid-credentials-while-login/21763/1 "2022-09-02T10:06:23Z")

</div>

Hi,  
Want to know is there any kind of feature in OKTA admin console or OKTA API,

1. Set the number which that many number of times user can enter invalid credentials through API which we can do this using admin console → password policy
2. Show a warning message before user entering his last attempt, message is like “There is one last attempt to get user locked” - Not found this setup in OKTA console and through API.  
Thanks you

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 12, 2024, 9:58pm UTC](https://devforum.okta.com/t/warn-the-user-before-his-last-invalid-credentials-while-login/21763/2 "2024-02-12T21:58:55Z")

</div>


