# How can I close the authentication window after fail the password n times?

**URL:** <https://forum.inductiveautomation.com/t/how-can-i-close-the-authentication-window-after-fail-the-password-n-times/72599>\
**Category:** Ignition\
**Created:** [April 18, 2023, 7:04pm UTC](https://forum.inductiveautomation.com/t/how-can-i-close-the-authentication-window-after-fail-the-password-n-times/72599 "2023-04-18T19:04:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![li\_guo](https://avatars.discourse-cdn.com/v4/letter/l/58956e/32.png) [@li\_guo](https://forum.inductiveautomation.com/u/li_guo)\
**Post date:** [April 18, 2023, 7:04pm UTC](https://forum.inductiveautomation.com/t/how-can-i-close-the-authentication-window-after-fail-the-password-n-times/72599/1 "2023-04-18T19:04:45Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/d/8d946bd93b6d1ccc0f4df62eae1ef00dd220baaf.png)  
How can I write scripts to close the authentication login window after login failed, and also close the e-sign popup which calls the authentication login window, and show alarm info for the login fail.  
thanks!
