Skip to content

Commit

Permalink
update api token
Browse files Browse the repository at this point in the history
  • Loading branch information
Ar Wahyu Pradana committed Oct 25, 2023
1 parent 552bcab commit 217a5e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Api/Auth/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public function login(Request $request)
$credentials=$request->only('email', 'password');
if (auth()->attempt($credentials)) {
$user=auth()->user();
$token=$user->createToken(uniqid().date('ymd-m-Y-H-i-s'))->plainTextToken;
$token=$user->createToken(uniqid().now())->plainTextToken;
$response=[
'status'=>true,
'message'=>'Login success',
Expand Down

0 comments on commit 217a5e5

Please sign in to comment.