I want to save the logged user name of Node Red UI in database.
I get some inspiration from here https://nodered.org/docs/configuration and implemented the user authentication for Node red editor and node red ui as well and its working fine.
Node Red Editor - User Authentication:
adminAuth: {
type: "credentials",
users: [{
username: "admin",
password: "$2a$08$zZWtXTja0fB1pzD4sHCMyOCMYz2Z6dNbM6tl8sJogENOMcxWV9DN.",
permissions: "*"
}]},
Node Red UI - User Authentication:
httpNodeAuth: {user:"user",pass:"$2a$08$zZWtXTja0fB1pzD4sHCMyOCMYz2Z6dNbM6tl8sJogENOMcxWV9DN."},
I want to update table in database based on user input and i want to know who was updated that table So i want the logged user name of dashboard. From where i could get this?
Thanks in advance.