Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8466118

Browse files
Password Reset section
1 parent 36da5b2 commit 8466118

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
namespace Iamnotstatic\LaravelAPIAuth\Http\Controllers\Auth;
4+
5+
use App\Http\Controllers\Controller;
6+
7+
class ForgotPasswordController extends Controller
8+
{
9+
/*
10+
|--------------------------------------------------------------------------
11+
| Password Reset Controller
12+
|--------------------------------------------------------------------------
13+
|
14+
| This controller is responsible for handling password reset emails and
15+
| includes a trait which assists in sending these notifications from
16+
| your application to your users. Feel free to explore this trait.
17+
|
18+
*/
19+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
namespace Iamnotstatic\LaravelAPIAuth\Http\Controllers\Auth;
4+
5+
use App\Http\Controllers\Controller;
6+
7+
class ResetPasswordController extends Controller
8+
{
9+
/*
10+
|--------------------------------------------------------------------------
11+
| Password Reset Controller
12+
|--------------------------------------------------------------------------
13+
|
14+
| This controller is responsible for handling password reset requests
15+
| and uses a simple trait to include this behavior. You're free to
16+
| explore this trait and override any methods you wish to tweak.
17+
|
18+
*/
19+
20+
21+
}

‎src/routes/api.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,9 @@
1919
Route::post('api/register', 'Auth\RegisterController@register')->name('register');
2020
Route::post('api/login', 'Auth\LoginController@login')->name('login');
2121

22+
Route::post('password/create', 'Api\Password\PasswordResetController@create');
23+
Route::get('password/find/{token}', 'Api\Password\PasswordResetController@find');
24+
Route::post('password/reset', 'Api\Password\PasswordResetController@reset');
25+
2226
});
2327

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /