Skip to content

Commit

Permalink
Merge branch 'master' of github.com:tomatophp/filament-accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
3x1io committed Aug 28, 2024
2 parents 47f1c94 + 914739d commit c9c7561
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@


if(config('filament-accounts.features.contacts')){
Route::middleware(['auth:sanctum'])->name('api.')->prefix('api/profile')->group(function (){
Route::name('api.')->prefix('api/profile')->group(function (){
Route::post('contact',[\TomatoPHP\FilamentAccounts\Http\Controllers\APIs\ContactsController::class,'send'])->name('contact.send');
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Controllers/APIs/AuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function login(Request $request): JsonResponse
]);

$check = auth($this->guard)->attempt([
"username" => $request->get($this->loginBy),
config('filament-accounts.login_by') => $request->get($this->loginBy),
"password" => $request->get('password')
]);

Expand Down

0 comments on commit c9c7561

Please sign in to comment.