# Login failed on nodered

**URL:** https://discourse.nodered.org/t/login-failed-on-nodered/95188
**Category:** General
**Tags:** docker
**Created:** [6 February 2025 15:12 UTC](https://discourse.nodered.org/t/login-failed-on-nodered/95188 "2025-02-06T15:12:41Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![yusufscelik](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/yusufscelik/32/98689_2.png) [@yusufscelik](https://discourse.nodered.org/u/yusufscelik)
#### Post date: [6 February 2025 15:12 UTC](https://discourse.nodered.org/t/login-failed-on-nodered/95188/1 "2025-02-06T15:12:41Z")

</div>

I installed Node-RED using Docker Compose, and I can access it via the IP address on port 1880. However, the issue is that I want authentication on the server. I created a hashed password and added it to `settings.js`, but it's not working as expected

```auto
 It looks like this;

adminAuth: {

type: "credentials",

users: [{

username: "admin",

password: "$2y$08$UiLPwUVDipQ7ktp0rwuncOwIfGAzeeQcDfuHWFOxbuoYKlB86D2S6",

permissions: "*"

}]

}, 

```

but when i enter this credintials it says login failed. I dont know where is the problem.

Can someone help me? I dont know where the problem is?

 ![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/e/ce7e0aeebfd3beaacdbe424759d5d3cba640c354.png)

Docker-compose.yml;

 ![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/5/155c2e33359c9b12e32f5d5eb969213ae3860f01.jpeg)

Version of NodeRED;

node-red --version  
Node-RED v4.0.8  
Node.js v20.18.2  
Linux 5.15.0-126-generic x64 LE

---

<div class="post-metadata">

### Author: ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)
#### Post date: [6 February 2025 15:35 UTC](https://discourse.nodered.org/t/login-failed-on-nodered/95188/2 "2025-02-06T15:35:04Z")

</div>

Did you use the hashed credential to sign in or the string used to create the hashed credential. You should be using the string.

---

<div class="post-metadata">

### Author: ![yusufscelik](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/yusufscelik/32/98689_2.png) [@yusufscelik](https://discourse.nodered.org/u/yusufscelik)
#### Post date: [6 February 2025 15:41 UTC](https://discourse.nodered.org/t/login-failed-on-nodered/95188/3 "2025-02-06T15:41:19Z")

</div>

> [@E1cid](#):
>
> Did you use the hashed credential to sign in or the string used to create the hashed credential. You should be using the string.

thanks it worked. i tried to enter same hash string to log in. i didnt know that i need to enter normal pasword which i gave for creating hash password.

---

<div class="post-metadata">

### Author: ![ThingsTinkerer](https://avatars.discourse-cdn.com/v4/letter/t/91b2a8/32.png) [@ThingsTinkerer](https://discourse.nodered.org/u/ThingsTinkerer)
#### Post date: [7 February 2025 07:45 UTC](https://discourse.nodered.org/t/login-failed-on-nodered/95188/4 "2025-02-07T07:45:29Z")

</div>

Now you know the purpose of hashed passwords 😄

---

<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: [21 February 2025 07:46 UTC](https://discourse.nodered.org/t/login-failed-on-nodered/95188/5 "2025-02-21T07:46:05Z")

</div>

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