UnknownSec Bypass
403
:
/
mnt
/
lmsestudio-instance-vol002
/
lms_67f94977db78
/
app
/
Http
/
Requests
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
UserRequest.php
<?php namespace EstudioLMS\Http\Requests; use EstudioLMS\Services\Admin\ConfigurationServices; /** * Class UserRequest * @package EstudioLMS\Http\Requests */ class UserRequest extends Request { /** * @var ConfigurationServices */ private $configurationServices; /** * UserRequest constructor. * @param ConfigurationServices $configurationServices */ public function __construct( ConfigurationServices $configurationServices ) { $this->configurationServices = $configurationServices; } /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { $config = $this->configurationServices->configuration(); $id = Request::get('id'); $type = Request::get('type'); $maxSize = 2048; $storageRemaining = (\Session::get('planLimite.plan_storage') - \Session::get('planLimite.storageSize')); $storageRemaining = (int)($storageRemaining * 1024); if ($maxSize > $storageRemaining) { $maxSize = $storageRemaining; } $pwdRule = empty($id) ? 'required|confirmed|min:8|max:20|strong_pwd' : 'sometimes|confirmed|min:8|max:20|strong_pwd'; $bioRule = ''; $cpfRule = $config->cpf_cnpj_required && $type == 'S' ? 'required|cpf_cnpj' : ''; return [ 'name' => 'required|min:5|max:50', 'picture' => 'mimes:jpeg,bmp,png|max:' . $maxSize, 'email' => 'required|email|max:255|unique:users,email' . ($id ? ",$id,id" : ''), 'password' => $pwdRule, 'biography' => $bioRule, 'cpf' => $cpfRule ]; } }
Copyright © 2026 - UnknownSec