Skip to content

Commit 62fd310

Browse files
author
Moses Esan
authored
Update README.md
1 parent 0d3375c commit 62fd310

File tree

1 file changed

+60
-1
lines changed

1 file changed

+60
-1
lines changed

README.md

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ The steps below are a compilation of a series of tutorials.
99
<li><a href="#tutorial3">Tutorial 3: Prepare Database</a></li>
1010
<li><a href="#tutorial4">Tutorial 4: Authenticating Users</a></li>
1111
<li><a href="#tutorial5">Tutorial 5: Email Templates</a></li>
12+
<li><a href="#tutorial6">Testing</a></li>
1213
</ul>
1314

1415
<a name="tutorial1"></a>
@@ -444,7 +445,7 @@ Create a file blade on resources /views/email/<b>verify.blade.php</b> as content
444445

445446
```
446447

447-
/views/email/welcome.blade.php
448+
/views/email/<b>welcome.blade.php</b>
448449
```html
449450
<!DOCTYPE html>
450451
<html lang="en-US">
@@ -464,3 +465,61 @@ Create a file blade on resources /views/email/<b>verify.blade.php</b> as content
464465
</body>
465466
</html>
466467
```
468+
/views/email/<b>reset.blade.php</b>
469+
470+
```html
471+
<!DOCTYPE html>
472+
<html lang="en-US">
473+
<head>
474+
<meta charset="utf-8">
475+
</head>
476+
<body>
477+
<h2>Reset Your Password</h2>>
478+
479+
<div>
480+
481+
Please follow the link below to
482+
<a href="{{ URL::to('api/reset/' . $confirmation_code) }}">reset your password</a>.
483+
484+
</div>
485+
486+
</body>
487+
</html>
488+
```
489+
490+
<a name="tutorial6"></a>
491+
<h1>Testing</h1>
492+
493+
Postman Chrome App is a great tool for sending post/get requests with an UI.
494+
495+
Register
496+
http://localhost:8888/laravel-jwt-login-api/public/api/register [POST]
497+
{"success":true,"message":"Thanks for signing up! Please check your email."}
498+
499+
http://localhost:8888/laravel-jwt-login-api/public/api/verify/[v_code] [GET]
500+
{
501+
success: true,
502+
message: "You have successfully verified your account."
503+
}
504+
505+
506+
Log In
507+
http://localhost:8888/laravel-jwt-login-api/public/api/login [POST]
508+
{
509+
token:"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjYsImlzcyI6Imh0dHA6XC9cL2xvY2FsaG9zdDo4ODg4XC9sYXJhdmVsLWp3dC1sb2dpbi1hcGlcL3B1YmxpY1wvYXBpXC9sb2dpbiIsImlhdCI6MTQ3MDQxNDk5NiwiZXhwIjoxNDcwNDE4NTk2LCJuYmYiOjE0NzA0MTQ5OTYsImp0aSI6ImMyYmU0YjM0MzIzZWQxYjgxOTgzMGU1N2NiNTE2NjkyIn0.6I9wobL-21o2ESRWvZUuuQPl6EKR52FfBC9BbFVnho0"
510+
}
511+
512+
513+
Access Other Routes
514+
http://localhost:8888/laravel-jwt-login-api/public/api/test [GET]
515+
{
516+
error: "token_not_provided"
517+
}
518+
519+
http://localhost:8888/laravel-jwt-login-api/public/api/test?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjYsImlzcyI6Imh0dHA6XC9cL2xvY2FsaG9zdDo4ODg4XC9sYXJhdmVsLWp3dC1sb2dpbi1hcGlcL3B1YmxpY1wvYXBpXC9sb2dpbiIsImlhdCI6MTQ3MDQxNTMwNSwiZXhwIjoxNDcwNDE4OTA1LCJuYmYiOjE0NzA0MTUzMDUsImp0aSI6IjZmNmYyYTMxOTAwNTdiMzk5NmEyYTYzOGMyOGM1ZTZhIn0.bwrVFEY1uPlNdm-AG5FHW1RbnFnl2npocxpCODBgu7k
520+
{
521+
foo: "bar"
522+
}
523+
524+
525+

0 commit comments

Comments
 (0)