# Custom login - Perspective

**URL:** <https://forum.inductiveautomation.com/t/custom-login-perspective/89689>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [April 30, 2024, 10:10am UTC](https://forum.inductiveautomation.com/t/custom-login-perspective/89689 "2024-04-30T10:10:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jhonny\_Palas](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@Jhonny\_Palas](https://forum.inductiveautomation.com/u/Jhonny_Palas)\
**Post date:** [April 30, 2024, 10:10am UTC](https://forum.inductiveautomation.com/t/custom-login-perspective/89689/1 "2024-04-30T10:10:19Z")

</div>

Hi everyone,

I'm trying to create my personal login page and I don't know the commands I need to call to authenticate, to validate my user.

I don't want to use "event configuration - Login" from button, but Script, so I can add popups for possible custom errors.

could you help me please

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [April 30, 2024, 10:35am UTC](https://forum.inductiveautomation.com/t/custom-login-perspective/89689/2 "2024-04-30T10:35:08Z")

</div>

Have you read this?

> **[Perspective Co-Branding | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/ignition-modules/perspective/perspective-co-branding#example-1-login-and-terminal-screens)**
>
> Perspective Co-Branding is a Gateway setting that allows users to customize the look their Perspective Sessions with logos, pictures, and colors. Various aspects of Perspective can be customized, such as the login screen, the desktop icon, and more. ...

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [April 30, 2024, 10:36am UTC](https://forum.inductiveautomation.com/t/custom-login-perspective/89689/3 "2024-04-30T10:36:49Z")

</div>

And [Can we create own login and logout views in perspective which uses database authentication module for login and logout? - #2 by pturmel](https://forum.inductiveautomation.com/t/can-we-create-own-login-and-logout-views-in-perspective-which-uses-database-authentication-module-for-login-and-logout/89513/2).

---

<div class="post-metadata">

**Author:** ![Steven\_Cheron](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@Steven\_Cheron](https://forum.inductiveautomation.com/u/Steven_Cheron)\
**Post date:** [April 30, 2024, 2:59pm UTC](https://forum.inductiveautomation.com/t/custom-login-perspective/89689/4 "2024-04-30T14:59:10Z")

</div>

Hi,

Yes you can, but think about your security.

If you want to work with the gateway users you can create a user provider in database mode. And then you can access and update tables, and make what you want with this.

For information, the gateway store the password hashed and encoded (sha1 then base64).

With python you can use this line to properly hash and encode the password to store or compare with another password hash.

```python
import hashlib
import base64

passwordHash = base64.b64encode(hashlib.sha1("Sup3rS3cr3tPa$$word").digest())

```

This operation is not reversible to ensure security.

Hope this will helps you 🙂  
Best regards,  
Steven Cheron
