# Password protect Node-red

**URL:** <https://discourse.nodered.org/t/password-protect-node-red/28316>\
**Category:** General\
**Created:** [14 June 2020 14:15 UTC](https://discourse.nodered.org/t/password-protect-node-red/28316 "2020-06-14T14:15:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lodv](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lodv/32/7963_2.png) [@lodv](https://discourse.nodered.org/u/lodv)\
**Post date:** [14 June 2020 14:15 UTC](https://discourse.nodered.org/t/password-protect-node-red/28316/1 "2020-06-14T14:15:41Z")

</div>

I try to password protect my Node-Red site.  
I tried to follow the instructions on the node-red site.  
This is what I did:  
I changed the .node-red/settings.js file like this:  
adminAuth: {  
type: "credentials",  
users: [{  
username: "lodv",  
password: "$2a$08$G6Zv96yYwIBOBmhO2GFgsegX3MedzRKdkfiZVO5shiBdHj.AzZ2fi",  
permissions: "\*"  
}]  
},  
As you can see I generated a new password with the password generator.  
I rebooted Raspberry Pi.

When I open my [http://192.xxx.xxx.xxx:1880](http://192.xxx.xxx.xxx:1880) I get the login screen, but I keep getting Login failed!  
I made a printscreen!  
 ![Node-Red login](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/2/c2e899c050f7d21845965ee5696b28cc89844710.jpeg)

I hope you can give me some advise.  
Thank you.  
Yvonne

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [14 June 2020 14:27 UTC](https://discourse.nodered.org/t/password-protect-node-red/28316/2 "2020-06-14T14:27:48Z")

</div>

That looks like an encrypted password. You should be able to login with the password you entered while encrypting it.

---

<div class="post-metadata">

**Author:** ![lodv](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lodv/32/7963_2.png) [@lodv](https://discourse.nodered.org/u/lodv)\
**Post date:** [14 June 2020 17:35 UTC](https://discourse.nodered.org/t/password-protect-node-red/28316/3 "2020-06-14T17:35:03Z")

</div>

Now I understand.  
Thank you so much Bakman.  
It works.

Regards,

Yvonne

---

<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:** [28 June 2020 17:35 UTC](https://discourse.nodered.org/t/password-protect-node-red/28316/4 "2020-06-28T17:35:12Z")

</div>

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