whoami7 - Manager
:
/
home
/
kckglobal
/
www
/
portal
/
app
/
Actions
/
Fortify
/
Upload File:
files >> /home/kckglobal/www/portal/app/Actions/Fortify/ResetUserPassword.php
<?php namespace App\Actions\Fortify; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Validator; use Laravel\Fortify\Contracts\ResetsUserPasswords; class ResetUserPassword implements ResetsUserPasswords { use PasswordValidationRules; /** * Validate and reset the user's forgotten password. * * @param mixed $user * @param array $input * @return void */ public function reset($user, array $input) { Validator::make($input, [ 'password' => $this->passwordRules(), ])->validate(); $user->forceFill([ 'password' => Hash::make($input['password']), ])->save(); } }
Copyright ©2021 || Defacer Indonesia