clean css
This commit is contained in:
@@ -62,7 +62,7 @@ class AuthController extends Controller
|
||||
|
||||
$token = Str::random(12);
|
||||
|
||||
DB::table('password_resets')->insert([
|
||||
DB::table('password_reset_tokens')->insert([
|
||||
'email' => $user->email,
|
||||
'token' => $token,
|
||||
'created_at' => now(),
|
||||
@@ -96,7 +96,7 @@ class AuthController extends Controller
|
||||
{
|
||||
$data = $request->validate([
|
||||
'email' => 'exists:users,email',
|
||||
'token' => 'exists:password_resets,token',
|
||||
'token' => 'exists:password_reset_tokens,token',
|
||||
'password' => ['required', 'regex:/^(?=.*?[A-Z])(?=.*[a-z])(?=.*[0-9]).{8,}$/'],
|
||||
'confirm_password' => 'same:password',
|
||||
], [
|
||||
@@ -104,7 +104,7 @@ class AuthController extends Controller
|
||||
'confirm_password.same' => __('validation.password_confirm'),
|
||||
]);
|
||||
|
||||
$token = DB::table('password_resets')
|
||||
$token = DB::table('password_reset_tokens')
|
||||
->whereEmail($data['email'])
|
||||
->whereToken($data['token'])
|
||||
->orderBy('created_at', 'desc')
|
||||
|
||||
@@ -40,7 +40,7 @@ class Reset extends Mailable
|
||||
return new Content(
|
||||
markdown: 'mail.reset',
|
||||
with: [
|
||||
'link' => config('app.url').'/reset/'.$this->token,
|
||||
'link' => config('app.url').'/changer-le-mot-de-passe/'.$this->token,
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user