I needed to change the admin login credentials on our local Node-RED server for security reasons.
I viewed https://nodered.org/docs/security and followed the instructions for generating a new pass hash and updating settings.js with that new hash.
However, it didn't work and we can no longer log in. I tried changing the hash back to the original one, but that also didn't work.
For reference, the installation was done as root and the path to the edited settings.js is :
Any help will be massively appreciated!
edit : also for reference : the adminAuth section of settings.js under the normal admin user account [~/.node-red/settings.js] is commented out and editing it had / has no effect, which is the reason we looked in /root