add lockout, failed and attemting events

This commit is contained in:
2024-01-31 00:04:55 +05:00
parent 33d3980a6b
commit bf483a206c
7 changed files with 85 additions and 6 deletions

View File

@@ -2,6 +2,7 @@
namespace App\Http\Controllers\Auth;
use App\Events\EventType;
use App\Http\Controllers\Controller;
use App\Models\System\Verification;
use App\Models\User;
@@ -97,6 +98,8 @@ class ResetPasswordController extends Controller
{
$user->update(['password' => bcrypt($request->password)]);
storeAuthEvent(EventType::PASSWORD_RESET, request());
return response()->json([
'step' => 3,
'message' => __('Your password has been updated'),