lahaxearnaud / laravel-u2f

Laravel U2F support
MIT License
52 stars 22 forks source link

u2f middleware on /register route #10

Closed simplenotezy closed 5 years ago

simplenotezy commented 7 years ago

U2F Middleware on register route should not be there, see:

image

bistory commented 5 years ago

Using the latest release on Laravel 5.8, I get that :

|        | POST          | u2f/auth                                        | u2f.auth                          | Lahaxearnaud\U2f\Http\Controllers\U2fController@auth                      | web,auth                                             |
|        | GET|HEAD      | u2f/auth                                        | u2f.auth.data                     | Lahaxearnaud\U2f\Http\Controllers\U2fController@authData                  | web,auth                                             |
|        | GET|HEAD      | u2f/register                                    | u2f.register.data                 | Lahaxearnaud\U2f\Http\Controllers\U2fController@registerData              | web,auth                                             |
|        | POST          | u2f/register                                    | u2f.register                      | Lahaxearnaud\U2f\Http\Controllers\U2fController@register                  | web,auth                                             |
+--------+---------------+-------------------------------------------------+-----------------------------------+---------------------------------------------------------------------------+------------------------------------------------------+

So this bug should be closed :)