# Securing login node-red editor

**URL:** <https://discourse.nodered.org/t/securing-login-node-red-editor/69537>\
**Category:** General\
**Tags:** node-red-dashboard, security\
**Created:** [25 October 2022 07:52 UTC](https://discourse.nodered.org/t/securing-login-node-red-editor/69537 "2022-10-25T07:52:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yonib](https://avatars.discourse-cdn.com/v4/letter/y/db5fbb/32.png) [@yonib](https://discourse.nodered.org/u/yonib)\
**Post date:** [25 October 2022 07:52 UTC](https://discourse.nodered.org/t/securing-login-node-red-editor/69537/1 "2022-10-25T07:52:27Z")

</div>

Hey  
I try to activate authentication to log in the editor, I do it in the same way as the doc is explaining that, uncoment the "adminAuth" with username and password in the setting.js file, i get the login windows when I try to log in after that, but I always get a "login failed" message ...

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [25 October 2022 08:16 UTC](https://discourse.nodered.org/t/securing-login-node-red-editor/69537/2 "2022-10-25T08:16:43Z")

</div>

How did you generate the encrypted password to put in settings.js?

Have you uncommented the whole section of the file down to }, ?

---

<div class="post-metadata">

**Author:** ![yonib](https://avatars.discourse-cdn.com/v4/letter/y/db5fbb/32.png) [@yonib](https://discourse.nodered.org/u/yonib)\
**Post date:** [25 October 2022 10:55 UTC](https://discourse.nodered.org/t/securing-login-node-red-editor/69537/3 "2022-10-25T10:55:05Z")

</div>

It's ok now, thank you.

---

<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:** [24 December 2022 10:55 UTC](https://discourse.nodered.org/t/securing-login-node-red-editor/69537/4 "2022-12-24T10:55:37Z")

</div>

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