Skip to content

Commit

Permalink
Adds Teams
Browse files Browse the repository at this point in the history
  • Loading branch information
alnutile committed Sep 1, 2024
1 parent c8fedd0 commit edadaa0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/SendMagicTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ trait SendMagicTrait
{
public function sendMagic(User $user, string $email)
{
$loginToken = new LoginToken();
$loginToken = new LoginToken;
$loginToken->token = Uuid::uuid4()->toString();
$loginToken->user_id = $user->id;
$loginToken->expires_at = now()->addMinutes(30);
Expand Down
2 changes: 1 addition & 1 deletion app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ class User extends Authenticatable
{
use HasApiTokens;
use HasFactory;
use HasTeams;
use HasProfilePhoto;
use HasTeams;
use Notifiable;
use TwoFactorAuthenticatable;

Expand Down
1 change: 0 additions & 1 deletion routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
return $request->user();
})->middleware('auth:sanctum');


Route::post(
'/signed', [\App\Http\Controllers\SignedUrlAuth::class, 'create']
)->name('signed_url.create');

0 comments on commit edadaa0

Please sign in to comment.