# Enable User Auth to Editor, custom Password hash not working

**URL:** <https://discourse.nodered.org/t/enable-user-auth-to-editor-custom-password-hash-not-working/39702>\
**Category:** General\
**Created:** [25 January 2021 10:26 UTC](https://discourse.nodered.org/t/enable-user-auth-to-editor-custom-password-hash-not-working/39702 "2021-01-25T10:26:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![CybrPimp](https://avatars.discourse-cdn.com/v4/letter/c/a698b9/32.png) [@CybrPimp](https://discourse.nodered.org/u/CybrPimp)\
**Post date:** [25 January 2021 10:26 UTC](https://discourse.nodered.org/t/enable-user-auth-to-editor-custom-password-hash-not-working/39702/1 "2021-01-25T10:26:46Z")

</div>

Ok, guys. New to NR here, so be easy please. 😉

I have installed on a Windows PC and have edited my settings.js file. I originally was editing the wrong file in the %AppData% folder but have now changed the one in the User Directory .node-red folder.

When I just uncommented the settings line, restarted and loaded the editor, it prompted me for a password and I used the default. So that test worked.

I then ran the following command to change to my own password;

```auto
node-red-admin hash-p

```

I got the prompt for Password, Typed in my password, copied the Hash into the file, rebooted the server.

When the server came up and I loaded the Dashboard, it did not prompt for username and password again.

I'm at a loss as it seems to work when I use the default password, but not when I set my own.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [25 January 2021 10:45 UTC](https://discourse.nodered.org/t/enable-user-auth-to-editor-custom-password-hash-not-working/39702/2 "2021-01-25T10:45:31Z")

</div>

> [@CybrPimp](#):
>
> When the server came up and I loaded the Dashboard, it did not prompt for username and password again.

It may not have prompted for a login because you already had a valid login token from when you tested the default password.

Log out (menu option under the user icon in the header), and then try logging back in with your new password.

---

<div class="post-metadata">

**Author:** ![CybrPimp](https://avatars.discourse-cdn.com/v4/letter/c/a698b9/32.png) [@CybrPimp](https://discourse.nodered.org/u/CybrPimp)\
**Post date:** [25 January 2021 17:48 UTC](https://discourse.nodered.org/t/enable-user-auth-to-editor-custom-password-hash-not-working/39702/3 "2021-01-25T17:48:12Z")

</div>

> [@CybrPimp](#):
>
> `node-red-admin hash-p`

Thanks bro!! that was the issue!

Updating another thread you were on that point to this solutions as well...

Thanks for your time & contribution!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [8 February 2021 17:48 UTC](https://discourse.nodered.org/t/enable-user-auth-to-editor-custom-password-hash-not-working/39702/4 "2021-02-08T17:48:36Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
