Every Laravel project has a built-in the password reset process. It works perfectly with the web, but when it comes to mobile apps, this method wil...
For further actions, you may consider blocking this person and/or reporting abuse
I got confused! We created 3 controllers at the beginning of the tutorial
But we are using only 2 of them, the ResetPasswordController controller is not being used
There will not be a name change in the tutorial. I say:
When referring to the 1st controller (CodeCheckController) wouldn't it be ResetPasswordController?
Can you help me with this question?
Try to check on his Github reporsitory, maybe he forgot to write the Step 3..
Thanks Muhammad
I'll see how you did
Yes, he hasn't updated the tutorial, if you follow it completely, you will definitely get an error.
Try to clone the repository from his Github, and follow the path of where he puts the files, where he writes the functions, I'm sure you'll understand completely..
I've had success implementing it, although there is some code that needs to be changed.
Want me to tell you here?
What I understand here is, the authentication process that Laravel has in the process on the Web, we can't fully utilize in the Mobile API process.
But we have to almost do it manually
Hey Muhammand
I already cloned the GitHub repository, but I couldn't solve this problem. Can you help me, because I've tried several ways to get the user and save the password, but I'm not getting it.
Is there any way to debug when we are using API so I can track what is happening?
As you can see in the image, I try to save the password but without success
I'm using this tutorial to learn about Laravel API, I'm new to Laravel. If you can help me I will be very grateful
Sorry for the late reply because I didn't check my email in a few days.
To understand how the authentication process provided by Laravel, let alone using the library they have prepared (in this case Sanctum), is a bit difficult.
If only for initial learning, and to understand how the authentication process provided by Laravel, you can try using a Laravel-made library called Laravel Breeze, you can read and try it here
Back in the initial discussion, if we use the library for the authentication process on the website, it will be very easy, because it is automatic and suitable.
But since we are using this library for processes on mobile, then we need to create some of the processes ourselves.
For some of the improvements I made, well... quite a lot, hehe.
I'll try to explain some basic things you should at least pay attention to and configure in the next comment
Many thanks to the author for such a detailed and detailed review, and most importantly, the code in the repository on GitHub!
Thanks to you, it was possible to implement password reset and recovery for the Api very simply and quickly!
Hey Muhammad
I replicated the GitHub project as is and it's almost all working fine.
Only when I'm going to update the password that it's not working.
The password is not changed and the output is HTML in Postman.
To make sure I wasn't doing anything wrong, I cloned the GitHub project repository and the same thing happens.
Can you help me find where the problem is?
In Postman I passed the generated code and the new password.
Have you tried to add
Acceptand the value isapplication/jsonin Postman Header section?I met this problem too, and to change the way it show the problem, this value we add to the Header can help
Hi muhammad,
I already passed this option in the header.
But so far I have not been able to solve it, whenever I try to change the password the result is the same. an html
Ok, let's solve it one by one to see where it's come from..
So, you're not succeed yet, in the 1st step?
Maybe you get an error that can lead us to the source of the problem?
If you curious, the html response you get, it is just a login page code of Laravel default view..
Try to copy paste it in html code viewer
We need to know what action you did that makes the html error come
Hi Muhammad
I got the system up and running!!! Couldn't do it without your tip on Accept and some changes to the GitHub codebase. I'll share the working project on GitHub, in case other people have difficulties.
github.com/Drummond-Dev/Laravel-AP...
Thanks for your help
Your tutorial have a loto of errors, dude!
Great Technique thanks
Amazing, thank's...