# Using the ignition login but also allowing users to make their accounts

**URL:** <https://forum.inductiveautomation.com/t/using-the-ignition-login-but-also-allowing-users-to-make-their-accounts/42882>\
**Category:** Maker\
**Created:** [February 2, 2021, 1:14pm UTC](https://forum.inductiveautomation.com/t/using-the-ignition-login-but-also-allowing-users-to-make-their-accounts/42882 "2021-02-02T13:14:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![seanbuckley2698](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@seanbuckley2698](https://forum.inductiveautomation.com/u/seanbuckley2698)\
**Post date:** [February 2, 2021, 1:14pm UTC](https://forum.inductiveautomation.com/t/using-the-ignition-login-but-also-allowing-users-to-make-their-accounts/42882/1 "2021-02-02T13:14:24Z")

</div>

Hello,  
I am using the template login that ignition provides, but I also want to let the user create their own accounts instead of having to create them in the gateway.  
Currently I am writing into the auto users db table with the users account details and I am assigning their User IDs with user roles in the auto user role table, after doing this i am not able to login with those details.  
The only accounts that login are the ones made with the gateway. Is there any reason why this is not working? would it have something to do with the passwords provided by the user not being encrypted in the same way they are in the gateway? If i cannot to what i want this way is there any other way?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [February 2, 2021, 4:47pm UTC](https://forum.inductiveautomation.com/t/using-the-ignition-login-but-also-allowing-users-to-make-their-accounts/42882/2 "2021-02-02T16:47:44Z")

</div>

You _can_ create the users manually using a DB query, but you’ll have to use the right hashing/salting algorithm. An easier route (that also allows you easier migration options down the road) would be to create the users via our scripting function:  
[https://docs.inductiveautomation.com/display/DOC81/system.user.addUser](https://docs.inductiveautomation.com/display/DOC81/system.user.addUser)

---

<div class="post-metadata">

**Author:** ![seanbuckley2698](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@seanbuckley2698](https://forum.inductiveautomation.com/u/seanbuckley2698)\
**Post date:** [February 8, 2021, 3:49pm UTC](https://forum.inductiveautomation.com/t/using-the-ignition-login-but-also-allowing-users-to-make-their-accounts/42882/3 "2021-02-08T15:49:42Z")

</div>

Thanks a lot, I got it working there now.
