Skip to content
Snippets Groups Projects
Unverified Commit ffe6c151 authored by Maxime FRIESS's avatar Maxime FRIESS :blue_heart:
Browse files

[fastauth] Delete token when use logs in

parent f06b62df
Branches
No related merge requests found
Pipeline #69523 passed with stages
in 4 minutes and 52 seconds
......@@ -51,6 +51,7 @@ class FastAuthTokenController extends Controller
if ($token->user()->exists() && $token->accepted) {
Auth::loginUsingId($token->user_id);
$token->delete();
}
return $token;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment