⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.177
Server IP:
50.6.168.112
Server:
Linux server-617809.webnetzimbabwe.com 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
Server Software:
Apache
PHP Version:
8.4.10
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
ctaacademy
/
www
/
app
/
Http
/
Controllers
/
Auth
/
View File Name :
PasswordResetLinkController.php
validate([ 'email' => ['required', 'email'], ]); // We will send the password reset link to this user. Once we have attempted // to send the link, we will examine the response then see the message we // need to show to the user. Finally, we'll send out a proper response. $status = Password::sendResetLink( $request->only('email') ); return $status == Password::RESET_LINK_SENT ? back()->with('status', __($status)) : back()->withInput($request->only('email')) ->withErrors(['email' => __($status)]); } public function custom_forget_password(Request $request) { $setting = Cache::get('setting'); $request->validate([ 'email' => ['required', 'email'], 'g-recaptcha-response' => $setting->recaptcha_status == 'active' ? ['required', new CustomRecaptcha()] : '', ], [ 'email.required' => __('Email is required'), 'g-recaptcha-response.required' => __('Please complete the recaptcha to submit the form'), ]); $user = User::where('email', $request->email)->first(); if ($user) { $user->forget_password_token = Str::random(100); $user->save(); (new MailSenderService)->sendUserForgetPasswordFromTrait($user); $notification = __('A password reset link has been send to your mail'); $notification = ['messege' => $notification, 'alert-type' => 'success']; return redirect()->back()->with($notification); } else { $notification = __('Email does not exist'); throw ValidationException::withMessages(['email' => $notification]); } } }