In a previous lecture in this course, I showed you how you can set up user based authentication so
that the front end of your military installation is protected with a username and password.
And this allows you to log in like this and add some level of protection to your note rate front end.
Now it's also it's possible, of course, as with anything to do with passwords, to just forget your
password.
Like it's happened to me several times, and if you just can't remember what the password is, what
you can do is to reset it on the inside.
As long as you have access to your note read folder on your Raspberry Pi or whichever server your note
installation lives on, then you'll be able to reset your password and to log in to your note.
Great front end.
You can find more information about what I'm about to show you here in the documentation.
So this is where the original information lies in, and I'm going to demonstrate how to do it in this
lecture.
So first of all, of course, log on to your note, read server and go into the note red folder.
And in here you will see the settings file settings.
J.S. go inside that and then search for admin authentication.
And that's what it looks like for me.
All right.
So down here.
I've set up my administration authentication and I'm using the credentials type and you can see that
I've got a single user with a username.
Peter And instead of the password, the password of course is not stored in the clear, but the password
field holds a hash of the actual password.
So what you have to do if you want to reset this password is essentially to calculate the new hash and
replace the old hash with the new hash.
So let's pretend that I can't remember my password and therefore I need to reset it.
The way to do it is to go into the documentation, go into the generating a password hash section,
and here you'll see a command that allows you to create a new hash for a password that no trick can
understand.
So I'm just going to copy that and paste it in here.
And now the the tour here is waiting for a new password for me to type in.
So I'm going to type in my new password like this and hit enter.
And here is the new hash going to copy this hash.
And go into my settings.
And in the password field.
Just delete the old hash.
And replace it with a new hash.
Like that.
Save the file and quit.
And finally, to make this change effective, I need to.
Stop the server and then start it again.
Some restarting the node read service.
Get a few moments to spin up.
Okay.
She got back into the front end of my note read installation.
I'm going to refresh you, make sure it all works.
Right.
So I'm going to type in my old password first.
It's my old password did not work.
Here's my new password work.
Just add it to a number in the end.
So the new password now works.
And I was able to use the.
Password hash tool to create a new hash, replace the original with the new hash in the settings the
case file, restart the node read server and am now able to get back into my node read frontend.