lahaxearnaud / laravel-u2f

Laravel U2F support
MIT License
52 stars 22 forks source link

Fix use of default Laravel model namespace #17

Closed asbiin closed 6 years ago

asbiin commented 6 years ago

This should fix the use of hard coded \App\User references, and other namespaces. In our project, we have moved model files, so the namespace of User class is not the default one.

Auth::user() return a class which implements Illuminate\Contracts\Auth\Authenticatable, and it's all we need here, to get the id with getAuthIdentifier() method.