webshell
Ghost Exploiter Team Official
Mass Deface
Directory >>
/
home
/
whitjouh
/
public_html
/
core
/
app
/
Http
/
Controllers
/
Auth
/
User
/
Mass Deface Auto Detect Domain
/*Ubah Ke document_root untuk mass deface*/
File / Folder
Size
Action
.
-
+New File
ForgotController.php
2.347KB
edt
ren
LoginController.php
1.595KB
edt
ren
RegisterController.php
1.314KB
edt
ren
<?php namespace App\Http\Controllers\Auth\User; use App\{ Http\Controllers\Controller, Http\Requests\AuthRequest, }; use App\Models\Setting; use Auth; use Illuminate\Support\Facades\Config; use Illuminate\Support\Facades\Session; class LoginController extends Controller { public function __construct() { $this->middleware('guest', ['except' => ['logout', 'userLogout']]); $setting = Setting::first(); if($setting->recaptcha == 1){ Config::set('captcha.sitekey', $setting->google_recaptcha_site_key); Config::set('captcha.secret', $setting->google_recaptcha_secret_key); } } public function showForm() { return view('user.auth.login'); } public function login(AuthRequest $request) { // Attempt to log the user in if (Auth::attempt(['email' => $request->login_email, 'password' => $request->login_password])) { // if successful, then redirect to their intended location if(!Auth::user()->email_token){ Session::flash('error',__('Email not verify !')); return redirect()->back(); } if($request->has('modal')){ return redirect()->back(); }else{ return redirect()->intended(route('user.dashboard')); } } // if unsuccessful, then redirect back to the login with the form data Session::flash('error',__('Email Or Password Doesn\'t Match !')); return redirect()->back(); } public function logout() { Auth::logout(); return redirect('/'); } }
<=Back
Liking