<?php
//Obfuscated by YAK Pro - Php Obfuscator 2.0.13 at 2025-05-27 11:02:04
 namespace App\Http\Controllers; use App\Events\NotifyEvent; use App\Mail\ForgotPasswordUser; use App\Mail\RegisterAdmin; use App\Mail\RegisterUser; use App\Notify; use App\Subscribe; use Illuminate\Http\Request; use Illuminate\Support\Facades\Hash; use App\Laravue\Models\Role; use App\Laravue\Models\User; use Carbon\Carbon; use Validator; use Mail; class RegisterController extends Controller { public function store(Request $request) { goto QKaya; r4rd6: $SRoZN = $params["\x65\x6d\141\x69\x6c"]; try { Notify::create(["\x63\x6f\156\164\145\x6e\x74" => "\x5b" . $params["\156\141\x6d\x65"] . "\x5d\x20\x6a\x75\163\164\40\162\145\x67\x69\163\164\145\162\145\x64\x20\x61\x6e\40\x61\x63\x63\x6f\165\156\164\x2e", "\155\x6f\144\165\154\145" => "\x72\x65\x67\151\x73\x74\145\162", "\151\x74\x65\155\x5f\143\157\x6e\x74\x65\x6e\x74" => json_encode($Ulk23), "\x63\x72\x65\x61\164\x65\144\137\141\164" => date("\131\x2d\155\55\144\40\110\x3a\151\x3a\163"), "\x75\160\144\141\x74\x65\x64\x5f\141\x74" => date("\x59\x2d\x6d\x2d\x64\x20\110\x3a\151\x3a\163")]); event(new NotifyEvent()); try { if (!(config("\163\x65\164\x74\x69\156\147\163\56\x75\137\x72\x65\147\151\x73\164\145\162") != null && config("\163\x65\164\164\151\156\x67\163\56\165\x5f\162\145\x67\x69\x73\x74\x65\162") != '')) { goto sjjsS; } Mail::to($SRoZN)->send(new RegisterUser($TJDoj)); sjjsS: if (!(config("\163\145\164\x74\151\156\147\163\x2e\x6d\x5f\162\145\x67\151\163\164\x65\x72") != null && config("\x73\145\164\164\x69\x6e\x67\163\x2e\x6d\x5f\162\x65\147\151\163\x74\x65\162") != '')) { goto g5BcX; } Mail::to(config("\163\145\x74\164\151\156\147\x73\56\x61\144\x6d\151\156\x5f\145\x6d\141\151\154"))->send(new RegisterAdmin($TJDoj)); g5BcX: } catch (\Exception $m8vYP) { logger("\x5b\105\x6d\x61\151\x6c\x5d\x20\x45\x72\162\157\x72\72\40" . $m8vYP->getMessage()); } } catch (\Exception $m8vYP) { } finally { return response()->json(["\144\x61\164\141" => ["\x73\164\141\164\x75\163" => "\163\x75\x63\x63\x65\x73\163"]], 200); } goto QZBqd; K8fxx: zU71L: $params = $request->all(); $UoQ23 = User::where("\165\163\x65\162\156\141\155\x65", $params["\x6e\x61\x6d\145"])->count(); goto KzLkn; QKaya: $NRex1 = Validator::make($request->all(), ["\156\141\x6d\145" => ["\x72\145\161\x75\x69\x72\145\x64", "\x73\164\162\151\156\x67", "\155\141\x78\72\63\x30"], "\x70\x61\x73\163\167\157\162\x64" => ["\162\x65\x71\165\151\x72\145\144", "\x73\x74\x72\151\x6e\147", "\x6d\151\156\72\66", "\155\141\x78\x3a\63\x30"], "\143\x6f\x6e\x66\x69\162\155\137\x70\x61\163\163\x77\157\162\x64" => ["\163\141\x6d\x65\72\x70\141\163\163\167\x6f\162\144"], "\x65\x6d\x61\151\154" => ["\x72\145\x71\165\x69\x72\x65\x64", "\x73\x74\x72\x69\156\x67", "\145\x6d\141\x69\154", "\155\x69\x6e\72\66", "\x6d\141\x78\72\63\x30", "\x75\156\151\161\165\145\72\165\163\x65\x72\163"], "\x66\151\162\x73\164\137\x6e\141\155\x65" => ["\162\x65\x71\165\151\x72\145\x64", "\x73\164\162\151\x6e\147", "\155\141\x78\x3a\62\x35\65"], "\x6c\x61\163\x74\137\x6e\x61\155\x65" => ["\x72\145\161\165\151\x72\x65\144", "\163\x74\x72\x69\156\x67", "\x6d\141\x78\x3a\x32\x35\x35"], "\x66\165\162\151\x67\141\156\141\x5f\x66\151\162\x73\x74\137\156\141\155\145" => ["\162\145\x71\x75\151\x72\145\x64", "\x73\x74\162\151\156\147", "\155\x61\x78\72\62\65\x35"], "\146\x75\162\151\147\141\156\x61\x5f\154\x61\x73\x74\137\156\141\x6d\145" => ["\x72\145\x71\165\x69\x72\145\x64", "\x73\164\162\151\156\147", "\155\x61\170\x3a\62\65\65"], "\160\x6f\163\164\x5f\143\x6f\x64\145" => ["\162\x65\161\165\x69\x72\x65\x64", "\155\151\x6e\x3a\x31", "\x6d\141\170\72\61\60"], "\141\144\x64\162\145\x73\163" => ["\162\x65\x71\x75\151\162\145\x64", "\163\x74\x72\x69\156\x67", "\x6d\x61\170\72\62\x35\65"], "\141\144\144\162\145\x73\x73\62" => ["\x72\x65\161\x75\151\x72\145\x64", "\163\164\162\x69\x6e\147", "\155\141\x78\72\62\x35\x35"], "\x61\144\144\162\145\163\x73\63" => ["\x72\x65\161\165\151\162\x65\144", "\x73\x74\162\x69\x6e\147", "\155\141\x78\72\62\x35\x35"], "\160\150\157\x6e\145\137\x6e\x75\x6d\x62\145\x72" => ["\x72\145\161\x75\x69\x72\145\x64", "\x6d\151\x6e\x3a\70", "\155\x61\170\x3a\x31\x35"]]); if (!$NRex1->fails()) { goto zU71L; } return response()->json(["\145\x72\162\157\162\163" => $NRex1->errors()], 403); goto K8fxx; R1ASY: ojWOC: $TJDoj = User::create(["\165\163\x65\x72\156\x61\x6d\145" => $params["\x6e\x61\x6d\145"], "\156\141\x6d\145" => $params["\156\141\x6d\x65"], "\163\154\165\147" => $params["\x6e\x61\155\x65"], "\x70\x61\163\x73\x77\x6f\x72\144" => Hash::make($params["\160\x61\x73\163\167\157\162\x64"]), "\x65\x6d\141\151\x6c" => $params["\x65\x6d\x61\x69\154"], "\146\x69\162\x73\x74\137\156\141\x6d\x65" => $params["\x66\151\x72\x73\164\137\x6e\x61\155\145"], "\154\x61\x73\x74\x5f\x6e\x61\155\145" => $params["\x6c\141\x73\164\x5f\x6e\141\x6d\145"], "\146\x75\154\154\x5f\x6e\x61\155\x65" => $params["\x66\151\x72\163\x74\x5f\156\141\155\x65"] . "\40" . $params["\154\141\163\x74\x5f\156\x61\x6d\145"], "\x66\x75\162\x69\147\x61\156\141\x5f\x66\151\162\x73\x74\137\x6e\141\x6d\x65" => $params["\x66\165\162\151\147\141\x6e\141\137\x66\151\x72\163\164\137\156\141\x6d\x65"], "\146\x75\x72\151\x67\x61\x6e\x61\x5f\x6c\141\x73\x74\137\156\x61\x6d\x65" => $params["\146\x75\162\x69\147\x61\x6e\x61\137\x6c\x61\x73\x74\x5f\x6e\141\x6d\145"], "\x66\x75\162\151\147\141\x6e\141\137\156\141\x6d\x65" => $params["\146\165\162\151\x67\x61\156\x61\137\146\x69\x72\163\164\x5f\x6e\141\155\x65"] . $params["\146\165\162\x69\x67\x61\156\141\x5f\154\x61\163\x74\137\x6e\141\x6d\x65"], "\160\157\x73\x74\137\x63\x6f\144\x65" => $params["\x70\x6f\163\x74\x5f\x63\x6f\144\x65"], "\x63\151\164\171" => $params["\141\x64\x64\162\x65\163\163"], "\x64\x69\163\x74\162\x69\143\x74" => $params["\141\x64\144\162\145\x73\163\62"], "\141\144\144\162\145\163\163" => $params["\141\x64\x64\162\145\163\163\x33"], "\x70\150\x6f\x6e\145\137\156\x75\155\142\x65\x72" => $params["\x70\150\157\156\x65\137\x6e\165\x6d\x62\x65\x72"], "\141\166\x61\164\141\162" => "\141\x76\x61\164\141\x72\56\x70\156\147", "\147\x72\x6f\165\160\x5f\x69\144" => 1, "\160\157\x69\156\164" => 0, "\x69\x73\x5f\x61\143\x74\x69\x76\x61\164\145\x64" => 1, "\x63\162\x65\141\x74\x65\144\x5f\141\x74" => date("\131\55\x6d\55\144\x20\110\x3a\151\72\163")]); $L4Ewn = Role::findByName("\x75\x73\x65\162"); goto f50bX; f50bX: $TJDoj->syncRoles($L4Ewn); $Ulk23 = $params; $Ulk23["\x73\151\164\145"] = url("\x2f"); goto r4rd6; KzLkn: if (!($UoQ23 > 0)) { goto rJXtl; } return response()->json(["\144\141\x74\141" => ["\163\x74\141\164\165\x73" => "\145\x72\x72\x6f\x72", "\x6d\x65\163\x73\141\x67\x65" => "\xe3\x83\xa6\xe3\203\274\343\x82\xb6\343\203\xbc\xe5\220\215\xe3\x81\257\xe6\227\242\343\201\253\xe5\255\230\345\234\250\xe3\201\x97\343\x81\276\343\201\231\343\200\202"]], 200); rJXtl: goto mEecr; mEecr: $CZS1j = User::where("\145\x6d\141\151\154", $params["\145\x6d\x61\151\154"])->count(); if (!($CZS1j > 0)) { goto ojWOC; } return response()->json(["\144\141\x74\x61" => ["\x73\164\x61\164\165\163" => "\x65\x72\x72\x6f\162", "\x6d\145\x73\x73\141\147\145" => "\xe3\203\xa1\343\x83\274\xe3\203\253\343\x81\xaf\xe6\x97\242\xe3\x81\253\345\255\x98\xe5\x9c\xa8\343\201\227\343\x81\xbe\343\201\x99\xe3\x80\x82"]], 200); goto R1ASY; QZBqd: } public function storeSubscribe(Request $request) { goto QMxhH; hC03n: $TJDoj = User::where("\x65\155\141\151\154", $params["\145\155\x61\x69\154"])->first(); if (!$TJDoj) { goto Ywczt; } $gxCdP = $TJDoj->id; goto H2UFA; H2UFA: Ywczt: $Ds7qH = Subscribe::where("\145\x6d\141\x69\154", $params["\145\x6d\141\151\154"])->first(); if ($Ds7qH) { goto N_1U4; } goto nVz8a; QMxhH: $NRex1 = Validator::make($request->all(), ["\145\155\141\x69\x6c" => ["\162\145\x71\x75\151\162\x65\x64", "\x73\x74\x72\151\156\147", "\145\x6d\141\x69\154", "\155\x69\156\72\66", "\x6d\141\x78\72\63\60"]]); if (!$NRex1->fails()) { goto p3io_; } return response()->json(["\x65\x72\x72\x6f\162\x73" => $NRex1->errors()], 403); goto HSGyE; HSGyE: p3io_: $params = $request->all(); $gxCdP = null; goto hC03n; nVz8a: $Ds7qH = Subscribe::create(["\145\x6d\x61\151\x6c" => $params["\x65\x6d\141\x69\154"], "\x75\x73\x65\162\137\x69\x64" => $gxCdP, "\x65\x6d\x61\x69\x6c\137\163\145\156\164" => 0, "\145\x6d\x61\x69\x6c\137\146\x61\151\x6c" => 0, "\x69\x73\137\x61\143\164\151\166\x61\164\145\x64" => 1, "\151\163\x5f\x64\145\x6c\145\x74\145\144" => 0, "\143\x72\x65\141\164\x65\x64\137\141\x74" => date("\x59\55\x6d\x2d\x64\x20\110\72\x69\72\163"), "\x75\160\x64\x61\164\145\x64\x5f\x61\x74" => date("\131\x2d\155\x2d\x64\40\x48\x3a\x69\72\163")]); N_1U4: $Ds7qH->update(["\151\163\x5f\x61\143\x74\x69\166\x61\164\145\x64" => 1, "\151\163\x5f\x64\145\x6c\145\x74\145\x64" => 0, "\165\x70\144\141\164\145\x64\x5f\141\164" => date("\131\55\x6d\55\144\40\x48\72\x69\x3a\163")]); goto nyNyI; nyNyI: return response()->json(["\x73\x74\x61\164\x75\163" => "\163\165\143\143\145\163\163", "\x6d\145\163\x73\x61\x67\x65" => "\x53\165\x62\163\x63\x72\x69\142\x65\40\163\165\x63\143\145\x73\x73\146\165\x6c\154\x79\56"], 200); goto vMcPu; vMcPu: } public function forgotPassword(Request $request) { goto k0lXX; s_B9a: $V0A7R = $request->get("\x65\155\x61\x69\x6c"); $CZS1j->update(["\x72\x65\163\145\x74\137\160\x61\x73\x73\x77\x6f\x72\x64\x5f\x63\x6f\x64\145" => $bMlCP, "\x72\x65\x73\145\x74\137\160\x61\163\163\x77\x6f\162\x64\x5f\164\x69\155\x65" => Carbon::now()->addMinutes(15)]); try { if (!(config("\163\x65\164\x74\151\156\x67\x73\56\x75\x5f\146\x6f\x72\x67\157\x74\137\x70\x61\163\x73\167\157\x72\144") != null && config("\163\x65\x74\x74\x69\156\147\163\x2e\x75\x5f\x66\x6f\162\147\x6f\x74\x5f\160\x61\163\163\x77\157\162\x64") != '')) { goto GgLWG; } Mail::to($V0A7R)->send(new ForgotPasswordUser($CZS1j)); GgLWG: return response()->json(["\144\141\x74\x61" => ["\163\x74\x61\164\x75\x73" => "\163\x75\143\x63\145\163\x73"]], 200); } catch (\Exception $m8vYP) { logger("\x5b\105\155\x61\151\154\135\x20\106\157\x72\147\x6f\x74\x50\x61\163\x73\167\157\x72\x64\125\x73\x65\162\x20\x45\162\x72\x6f\162\72\x20" . $m8vYP->getMessage()); return response()->json(["\x64\141\164\x61" => ["\x73\164\x61\164\x75\163" => "\x65\162\162\x6f\162"]], 200); } goto LGTGA; LNp3_: ffYB9: $CZS1j = User::where("\x65\155\141\x69\x6c", $request->get("\x65\155\141\x69\x6c"))->first(); if ($CZS1j) { goto cY9Qf; } goto dzgD1; dzgD1: return response()->json(["\144\x61\x74\x61" => ["\163\164\x61\164\165\163" => "\x65\x72\x72\x6f\x72", "\155\145\x73\x73\x61\147\x65" => "\xe9\x9b\xbb\345\xad\220\343\203\241\343\203\xbc\343\203\xab\343\201\x8c\345\255\230\345\x9c\xa8\343\201\x97\343\x81\276\343\x81\233\343\x82\x93\xe3\x80\x82"]], 200); cY9Qf: $bMlCP = md5(md5(rand(1, 9999) . date("\x59\x6d\x64\110\151\163"))); goto s_B9a; k0lXX: $NRex1 = Validator::make($request->all(), ["\x65\x6d\x61\x69\x6c" => ["\162\x65\161\165\151\x72\145\144", "\163\164\x72\151\156\x67", "\x65\155\x61\x69\154", "\155\141\170\72\x32\x35\65"]]); if (!$NRex1->fails()) { goto ffYB9; } return response()->json(["\144\x61\164\141" => ["\163\x74\141\164\x75\x73" => "\x65\x72\162\x6f\162", "\155\x65\163\x73\x61\x67\145" => $NRex1->errors()]], 200); goto LNp3_; LGTGA: } public function resetPassword(Request $request, $bMlCP = '') { goto x3s1u; rj7Gk: h1Udk: $params = $request->all(); $CZS1j = User::where("\145\x6d\x61\151\x6c", $params["\x65\x6d\141\x69\154"])->first(); goto ZXQrd; MrCHE: return response()->json(["\x64\x61\164\141" => ["\163\x74\x61\x74\x75\163" => "\x65\162\162\x6f\162", "\x6d\x65\x73\163\x61\x67\x65" => "\343\203\x91\343\x82\271\xe3\x83\xaf\xe3\x83\274\343\203\211\40\xe3\203\252\343\x82\273\343\203\203\xe3\x83\210\x20\xe3\202\263\xe3\203\xbc\xe3\203\x89\xe3\x81\256\xe6\234\211\345\212\271\xe6\x9c\x9f\xe9\x99\220\343\201\x8c\xe5\210\207\xe3\202\214\xe3\x81\246\xe3\201\204\343\x81\xbe\xe3\201\x99\343\x80\x82"]], 200); ZO9lJ: $CZS1j->update(["\160\141\163\x73\x77\x6f\162\x64" => Hash::make($params["\160\x61\x73\163\167\x6f\162\x64"]), "\162\145\163\x65\x74\x5f\x70\141\x73\163\x77\157\162\x64\x5f\143\157\x64\x65" => null, "\x72\x65\163\x65\x74\137\160\x61\x73\x73\x77\x6f\x72\x64\137\164\x69\155\x65" => null, "\x75\x70\144\x61\x74\x65\144\137\x61\164" => date("\131\x2d\155\55\x64\40\110\72\151\x3a\163")]); goto ke9bI; p9xV0: $pwjiS = Carbon::now(); $NcU98 = Carbon::parse($CZS1j->reset_password_time); if (!($CZS1j->reset_password_code == null || $CZS1j->reset_password_code == '' || $CZS1j->reset_password_time == null || $CZS1j->reset_password_time == '' || $CZS1j->reset_password_code != $bMlCP || $pwjiS->gt($NcU98))) { goto ZO9lJ; } goto MrCHE; x3s1u: $NRex1 = Validator::make($request->all(), ["\x65\155\x61\x69\x6c" => ["\x72\x65\x71\x75\151\162\x65\144", "\x73\164\162\x69\x6e\x67", "\145\x6d\x61\151\154", "\155\x61\170\x3a\x32\x35\65"], "\160\141\163\x73\167\157\162\x64" => ["\162\x65\x71\165\x69\162\145\x64", "\x73\164\x72\151\156\x67", "\155\151\x6e\72\x36"], "\143\x6f\x6e\146\151\x72\x6d\x5f\x70\141\163\163\167\157\x72\144" => ["\x73\x61\155\145\x3a\160\x61\163\163\x77\157\162\144"]]); if (!$NRex1->fails()) { goto h1Udk; } return response()->json(["\144\x61\164\x61" => ["\x73\164\141\x74\165\x73" => "\x65\x72\162\157\x72", "\155\145\x73\x73\141\x67\x65" => $NRex1->errors()]], 200); goto rj7Gk; ZXQrd: if ($CZS1j) { goto nmuDa; } return response()->json(["\144\x61\x74\x61" => ["\x73\164\x61\164\165\x73" => "\145\x72\x72\157\162", "\x6d\145\163\163\x61\147\145" => "\351\x9b\273\xe5\xad\x90\343\203\xa1\xe3\x83\274\343\203\xab\xe3\x81\214\345\xad\230\345\234\xa8\xe3\x81\227\xe3\x81\xbe\xe3\201\x9b\343\x82\x93\343\x80\202"]], 200); nmuDa: goto p9xV0; ke9bI: return response()->json(["\x64\x61\164\x61" => ["\x73\164\141\x74\165\x73" => "\x73\x75\x63\143\x65\163\163"]], 200); goto E4S5E; E4S5E: } }