# Authentication fails with correct password

**URL:** <https://discourse.nodered.org/t/authentication-fails-with-correct-password/37242>\
**Category:** General\
**Created:** [9 December 2020 12:46 UTC](https://discourse.nodered.org/t/authentication-fails-with-correct-password/37242 "2020-12-09T12:46:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wkossen](https://avatars.discourse-cdn.com/v4/letter/w/8491ac/32.png) [@wkossen](https://discourse.nodered.org/u/wkossen)\
**Post date:** [9 December 2020 12:46 UTC](https://discourse.nodered.org/t/authentication-fails-with-correct-password/37242/1 "2020-12-09T12:46:06Z")

</div>

Hi,  
i want to secure the node-red webinterface with a username/password. I followed the guides and updated settings.js with the authentication section to create an admin account with a hashpassword, and restart node-red.

i now get the login screen on the web interface. so far so good.

when i try to log in it doesnot work. i get straight back into the login screen. no message. if i try non-existant accounts or wrong passwords, i get login failed, but with the correct data, nothing. but i also don't get in.

i have no idea how to get it to work properly. i reverted to no-login which i don't want, but need to actually make flows. any pointers would be highly appreciated.

thanks

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [9 December 2020 15:19 UTC](https://discourse.nodered.org/t/authentication-fails-with-correct-password/37242/2 "2020-12-09T15:19:14Z")

</div>

Ive seen an issue where the login worked when i entered the password in lowercase (even though i am certain i had an uppercase character in it when i generated the hash) - never looked into why (assumed it was mistyped by myself) - worth a try.

---

<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:** [7 February 2021 15:19 UTC](https://discourse.nodered.org/t/authentication-fails-with-correct-password/37242/3 "2021-02-07T15:19:16Z")

</div>

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