# Client startup message

**URL:** <https://forum.inductiveautomation.com/t/client-startup-message/22022>\
**Category:** Ignition\
**Created:** [January 21, 2019, 4:54pm UTC](https://forum.inductiveautomation.com/t/client-startup-message/22022 "2019-01-21T16:54:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![d.iannozzi](https://avatars.discourse-cdn.com/v4/letter/d/ecd19e/32.png) [@d.iannozzi](https://forum.inductiveautomation.com/u/d.iannozzi)\
**Post date:** [January 21, 2019, 4:54pm UTC](https://forum.inductiveautomation.com/t/client-startup-message/22022/1 "2019-01-21T16:54:35Z")

</div>

Hi All

is there a way to replace the “login failed” message when a user that is not a member of the “required client roles” logs ?  
for example, show a message box “You are not allowed to login because not an operator” and abort the login process ?

thanks and regards  
Dominic

---

<div class="post-metadata">

**Author:** ![grietveld](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/grietveld/32/6984_2.png) [@grietveld](https://forum.inductiveautomation.com/u/grietveld)\
**Post date:** [January 21, 2019, 5:14pm UTC](https://forum.inductiveautomation.com/t/client-startup-message/22022/2 "2019-01-21T17:14:02Z")

</div>

I’m not sure if that particular option is available. But you should be able to create a client startup script to check if the user has a role, and then display a message box and then log out.

---

<div class="post-metadata">

**Author:** ![rbanaszak](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rbanaszak/32/6929_2.png) [@rbanaszak](https://forum.inductiveautomation.com/u/rbanaszak)\
**Post date:** [January 21, 2019, 7:27pm UTC](https://forum.inductiveautomation.com/t/client-startup-message/22022/3 "2019-01-21T19:27:33Z")

</div>

I agree with grietveld above. One other way to do this would be a little more in depth but would give you the customization your looking for, see below.

- Create a second project on the gateway and call it “login” or something similar
- Set project properties to auto login.
- Create a individual Main screen in the new project for your login screen
- On login screen “login” button, check user/password to insure role and permission, if user permitted swap to your main project and supply user name and password, if not permitted handle it as you want.
- In main screen set project properties to auto login
- Create client script to run at project open to accept user and password passed in from Login Project to swap the user in as correct user

---

<div class="post-metadata">

**Author:** ![d.iannozzi](https://avatars.discourse-cdn.com/v4/letter/d/ecd19e/32.png) [@d.iannozzi](https://forum.inductiveautomation.com/u/d.iannozzi)\
**Post date:** [January 22, 2019, 8:46am UTC](https://forum.inductiveautomation.com/t/client-startup-message/22022/4 "2019-01-22T08:46:39Z")

</div>

Thanks guys…I’ll give it go !

---

<div class="post-metadata">

**Author:** ![Sanderd17](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sanderd17/32/8735_2.png) [@Sanderd17](https://forum.inductiveautomation.com/u/Sanderd17)\
**Post date:** [January 22, 2019, 9:42am UTC](https://forum.inductiveautomation.com/t/client-startup-message/22022/5 "2019-01-22T09:42:52Z")

</div>

We also use this practice, sometimes it's hard to get it right (as there are many ways to log out and drop you back to the original login screen), but designing a separate login screen works for us.

However, it is not recommended by the IA team.

> [@How to change info of default ignition](http://forum.inductiveautomation.com/t/how-to-change-info-of-default-ignition/17443/3):
>
> IA doesn’t recommend this as a secure practice. People do it anyway, but it’s not a good idea.
