Redaxscript\Controller\Reset::_reset PHP Method

_reset() protected method

reset the password
Since: 3.0.0
protected _reset ( array $resetArray = [] ) : boolean
$resetArray array array of the reset
return boolean
    protected function _reset($resetArray = [])
    {
        return Db::forTablePrefix('users')->where(['id' => $resetArray['id'], 'status' => 1])->findOne()->set('password', $resetArray['password'])->save();
    }