# Enable Node-Red Login Screen

**URL:** <https://discourse.nodered.org/t/enable-node-red-login-screen/45725>\
**Category:** General\
**Created:** [16 May 2021 15:33 UTC](https://discourse.nodered.org/t/enable-node-red-login-screen/45725 "2021-05-16T15:33:14Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrejost](https://avatars.discourse-cdn.com/v4/letter/a/f14d63/32.png) [@andrejost](https://discourse.nodered.org/u/andrejost)\
**Post date:** [16 May 2021 15:33 UTC](https://discourse.nodered.org/t/enable-node-red-login-screen/45725/1 "2021-05-16T15:33:14Z")

</div>

Hi,

I freshly installed a node-red server in my raspberry pi and I wanted to enable authentication. I edited the setting.js to add enable the adminAuth and added the password using the encrypting feature to add the password.

However, every time I log into node-red it logs me directly without showing the login screen to enter password and username. Am I missing some configuration to be enabled?

Thanks in advance.

Best Regards,

André

---

<div class="post-metadata">

**Author:** ![Ranki](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ranki/32/41282_2.png) [@Ranki](https://discourse.nodered.org/u/Ranki)\
**Post date:** [16 May 2021 16:12 UTC](https://discourse.nodered.org/t/enable-node-red-login-screen/45725/2 "2021-05-16T16:12:59Z")

</div>

Hello @andrejost,

Welcome to the forum!

Do you mean the login to the dashboard or to the admin panel? Which parameters did you set?

In general authentification is cached on the device, which should be a feature than a bug 🙃

Cheers  
Ranki

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [16 May 2021 16:18 UTC](https://discourse.nodered.org/t/enable-node-red-login-screen/45725/3 "2021-05-16T16:18:14Z")

</div>

> [@andrejost](#):
>
> I edited the setting.js

Which settings.js file? What directory is it in?

---

<div class="post-metadata">

**Author:** ![andrejost](https://avatars.discourse-cdn.com/v4/letter/a/f14d63/32.png) [@andrejost](https://discourse.nodered.org/u/andrejost)\
**Post date:** [16 May 2021 17:15 UTC](https://discourse.nodered.org/t/enable-node-red-login-screen/45725/4 "2021-05-16T17:15:48Z")

</div>

Hi @Ranki , I mean the standard login screen when I try to access any file in the URL "Servername:1880".

I only uncommented this option: _adminAuth:_

---

<div class="post-metadata">

**Author:** ![andrejost](https://avatars.discourse-cdn.com/v4/letter/a/f14d63/32.png) [@andrejost](https://discourse.nodered.org/u/andrejost)\
**Post date:** [16 May 2021 17:16 UTC](https://discourse.nodered.org/t/enable-node-red-login-screen/45725/5 "2021-05-16T17:16:24Z")

</div>

I edited the setting.js file which is in **/usr/lib/node\_modules/node-re**

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [16 May 2021 17:34 UTC](https://discourse.nodered.org/t/enable-node-red-login-screen/45725/6 "2021-05-16T17:34:09Z")

</div>

Wrong settings file. If you start node red in a terminal it will tell you which one it is using. Usually it is in your .node-red folder.

---

<div class="post-metadata">

**Author:** ![Ranki](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ranki/32/41282_2.png) [@Ranki](https://discourse.nodered.org/u/Ranki)\
**Post date:** [16 May 2021 17:40 UTC](https://discourse.nodered.org/t/enable-node-red-login-screen/45725/7 "2021-05-16T17:40:42Z")

</div>

Hi @andrejost,

Beside using the correct settings file, please have a look to the following guide: [Securing Node-RED : Node-RED](https://nodered.org/docs/user-guide/runtime/securing-node-red#http-node-security)

The setting you adjusted is for the editors page.

Cheers  
Ranki

---

<div class="post-metadata">

**Author:** ![andrejost](https://avatars.discourse-cdn.com/v4/letter/a/f14d63/32.png) [@andrejost](https://discourse.nodered.org/u/andrejost)\
**Post date:** [16 May 2021 17:56 UTC](https://discourse.nodered.org/t/enable-node-red-login-screen/45725/8 "2021-05-16T17:56:07Z")

</div>

Awesome! For the help guys! Now I can see the login screen correctly!

If I might suggest something ... The documentation on this link you mentioned @Ranki should perhaps improve the explanation on how the node-red settings files works when it gets copied from the original folder. On Steve`s Node Red awesome guides he makes it more explicit:

_On Linux the **settings.js** file is copied from the **/usr/lib/node-modules/node-red/** folder to your **.node-red** folder in your home directory when you start node-red, and there is no **settings.js** file present._

> **[Node-Red Settings.js File – Node-Red Admin - Steves Node-Red Guide](http://stevesnoderedguide.com/node-red-settings-js)**
>
> Node red uses a settings file called settings.js located in in the user .node-red (dot node-red) folder in their home directory. You can create your own settings file and customise it either by copying the existing file or using the file available...

Pehaprs adding such a comment would improve the documentation.

Everything working like a charm now 🙂

Best Regards,

André Souto

---

<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:** [30 May 2021 17:56 UTC](https://discourse.nodered.org/t/enable-node-red-login-screen/45725/9 "2021-05-30T17:56:40Z")

</div>

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