public function reset($userId = null, $code = null)
    {
        try {
            if (post('postback')) {
                return $this->reset_onSubmit();
            }

            if (!$userId || !$code) {
                throw new ApplicationException(trans('backend::lang.account.reset_error'));
            }
        }
        catch (Exception $ex) {
            Flash::error($ex->getMessage());
        }

        $this->vars['code'] = $code;
        $this->vars['id'] = $userId;
    }
public function reset($userId = null, $code = null)
    {
        try {
            if (post('postback')) {
                return $this->reset_onSubmit();
            }

            if (!$userId || !$code) {
                throw new ApplicationException(trans('backend::lang.account.reset_error'));
            }
        }
        catch (Exception $ex) {
            Flash::error($ex->getMessage());
        }

        $this->vars['code'] = $code;
        $this->vars['id'] = $userId;
    }
public function reset ( $ userId = null , $ code = null ) { try { if ( post ( 'postback' ) ) { return $ this -> reset_onSubmit ( ) ; } if ( ! $ userId || ! $ code ) { throw new ApplicationException ( trans ( 'backend::lang.account.reset_error' ) ) ; } } catch ( Exception $ ex ) { Flash :: error ( $ ex -> getMessage ( ) ) ; } $ this -> vars [ 'code' ] = $ code ; $ this -> vars [ 'id' ] = $ userId ; }
Reset backend user password using verification code.
Reset backend user password using verification code .