| Conditions | 1 |
| Paths | 1 |
| Total Lines | 29 |
| Code Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 23 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Arcanesoft\Auth\Http\Routes\Front; |
||
| 23 | 9 | public function map(Registrar $router) |
|
| 24 | { |
||
| 25 | 9 | parent::map($router); |
|
| 26 | |||
| 27 | 9 | $this->group([ |
|
| 28 | 9 | 'prefix' => 'password', |
|
| 29 | 'as' => 'password.' |
||
| 30 | 9 | ], function () { |
|
| 31 | 9 | $this->get('email', [ |
|
| 32 | 9 | 'as' => 'email.get', |
|
| 33 | 9 | 'uses' => 'PasswordController@getEmail', |
|
| 34 | 9 | ]); |
|
| 35 | |||
| 36 | 9 | $this->post('email', [ |
|
| 37 | 9 | 'as' => 'email.post', |
|
| 38 | 9 | 'uses' => 'PasswordController@postEmail', |
|
| 39 | 9 | ]); |
|
| 40 | |||
| 41 | 9 | $this->get('reset/{token}', [ |
|
| 42 | 9 | 'as' => 'reset.get', |
|
| 43 | 9 | 'uses' => 'PasswordController@getReset', |
|
| 44 | 9 | ]); |
|
| 45 | |||
| 46 | 9 | $this->get('reset', [ |
|
| 47 | 9 | 'as' => 'reset.post', |
|
| 48 | 9 | 'uses' => 'PasswordController@postReset', |
|
| 49 | 9 | ]); |
|
| 50 | 9 | }); |
|
| 51 | 9 | } |
|
| 52 | } |
||
| 53 |