Hello, friend, welcome back.
In your previous video, we successfully designed our Jane's passport piece, so right now I want to
do an updated secant updated.
If you go to our liability for authentication system and we need to install it, we get this update
password.
That is actually the piece.
Right.
So this page, as I told you, friend, if you go to our profi, that means that it's actually created
out of the file folder and the profile folder because there is an update password.
So that is not the password is now working.
You can see there is only one day for the password.
That new password is a password and there is a confirmed password.
And after that, the reset button, that means right now this portion actually working for our specific
displays to know what to do and to update it.
OK, so from here I take that concept and I want to apply it for our current position, like it considers
the idea so that the idea and the type and then that is a good plan.
So here we don't need this.
I only I need this idea so better.
I copy this idea now go to our changed passwords or Fosterville as a current password.
So that is our input type is already on here at the password.
So now I'm going to add on the ID so that we don't need this.
I change it and I based it as it will be as a current password.
And also I want to do undertake another one.
You can see that as a type, as a password type.
And also here I the type I have already had that type and also I have already add that our ID, so that
means this one.
So perfect.
So that's the two things will be needed and also for our next one as a password, that is actually our
current password.
Right.
So now I named that our identity.
That means for this one, I name it as a current password and our type will be as a password.
Perfect.
And after that, there is a new password.
And for the new password, I want to do I want to add another one to the amount that this type will
be as a password type.
And also you can see it's now also that have died as a password.
So now I copy this idea and now here I want to update this field idea.
So here I passed it.
OK, so here I posted so bitter.
I want to add this on here.
So that is actually input.
Filipov will type will be as a password and also add on to the idea as a password and then or another
one and another one here you can see that is a type password is perfect and then another one is ID as
a password confirmation and the type will be as a password.
So now I copy this idea, I copy this idea.
And now you know James Password here.
That will be our IDE.
Our ideas will be as a password.
Confirmation and type will be as a password.
Right.
So that's all you have to do.
And also you can add some of the name.
So here that is actually they have no name for this one to be rounded on to add on the name like here
for our Busfield for this field.
I want to add on the name so sorry.
That will be the name and name will be for this one.
For our first one it will be as my name it or password or password.
OK, so that will be as all password name.
And also here for our new password, I name it.
I mean this or this filename, I name it as a password.
OK, so that will be as a password.
And also I want to take another one for our confirmation password.
I pulled one of the name and I just put that name for this one as the password confirmation.
I name it as a password.
Confirmation.
Perfect.
So friend.
So I updated two things.
I better that name.
I have to get that idea.
I have that name.
I have that idea.
And also that is actually our idea and that is our name.
Right.
So if you also want to add one of the validation I have already discussed about that, things with your
friend, how can add some of the validation that is the default validation.
So if you want to add it, you can also added a betrayal to do want to add it as a straight arrow.
Right.
Remember, I hope you I have already discussed about that things with you.
Remember your list name.
So with this name you can actually add some of the validation.
OK, so with this name on the I don't need the validation and better on the R&D spend on that one,
the spin class.
And also I want to finish the respin.
So that will be the finishes spin.
And here I want to add on the class, I want to add on the class and class will be as a text text danger,
OK, that will be displayed this type of error as a text and gender and danger.
And then here it will be displayed the.
Message.
Right.
That means a lot before all that gold.
So that will be displayed our this message perfect.
So that means here, if you get some of the validation this will be displayed is validation.
And also after that, we have to do we have to end it and add or.
Right, that will be as and error.
So now I also want to do want to add it, I also want to add it for our new password.
So here I mean that to fill as a password.
So it'll be as a password and then also an added validation for our password confirmation.
So that will be as a password confirmation.
Perfect, so that's right now we are also at our validation, so that is our validation code and that
is all that field.
Right, so now if we're to save all, I'm first of all, to check it, everything should be clear.
You can see everything is now running.
So now, Fred, I want to do here I want to add that our current password or new password and the confirmation
password.
So if you put any wrong password right now, this user already locked in this user already have some
of the password rights.
That will be our current password.
So should we match it?
If it's not match, then it will be displayed some of the add or rather then it'll be display another
validation error.
OK, so how can also our military we have part of the validation for the new password and the password
should be the same.
So here also we have to add this type of all the validation.
And so now we have to work in our form.
So don't go to our changed password.
And here you can see I have also one the I don't know, the button at the tip of the submit type.
So that is our form.
So into the form area.
Now I want to update this font so that the form area we had, we have to add don't the method.
Right.
So that will be methode.
So that will be our method and our method will be obviously as a post method, right.
And also here to add some action on that front of the action and our action will be on the road.
So you want to do that?
One of the road and our out will be as might no how to do.
I want to get on the road.
Sorry.
I want to get on the road for this one as a passport update.
Sort of left.
Right.
So now we have to do we have to create our this round.
Right.
So that means that is the road we have to create and we know our way about it area.
Now go to our Web route.
And also one things here also we have to do we have to add on the set of token.
We don't see a set of token.
It shall be not save any data.
So now understand that the key is R.F. So make that here you add this sort of token.
So there is a post method.
Now, what are we brought here to do and to copy it?
I copied this out and here I pasted it will be as a post.
So name ID as opposed to the Postmus matter and user update our password.
I better actually write.
I want to do and make it as a password and then update.
Right.
That will be the password update that you want.
And you changed password here on the map to the method and our name will be I have already created this
out.
Out will be as a password update I copied and now here I want to update it.
That will be as a password update so you can see the result of the main format, actually a step by
step.
You just have to do we have to actually, Floyd.
Right.
So now to do and to create the method for this one.
And our method will be as a password update password.
I mean, maybe the update password.
So now we have to do we have to create this update password method in our changed password can now go
to our controller.
That means that our controller.
So here, here I want to do and to create one of the I'm I want to create all the function that is the
method as a public and then function and then our update password method.
So that is our update password method.
Right.
And I only have to do we have to create it so better trying to do and to continue this process.
You know, next video, I will create this method without the password.
That means here, if you have to also add some of the validation so we can add this validation, that
will be the type of validation, so we can add this validation now can complete this update password
portion.
In our next video, I will show that things with a live example.
So thanks for watching and I will see you in the next video.