mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-09 21:57:47 +02:00
Basic vue frontend with auth
This commit is contained in:
@ -21,6 +21,7 @@ class UserController extends Controller
|
||||
|
||||
if (Auth::attempt($credentials)) {
|
||||
$success['token'] = Auth::user()->createToken('MyApp')->accessToken;
|
||||
$success['name'] = Auth::user()->name;
|
||||
|
||||
return response()->json(['success' => $success]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user