lib/dependency-tracker-client/api/user_api.rb
# Asserts login credentials and upon successful authentication, verifies passwords match and changes users password
# Upon a successful login, a JSON Web Token will be returned in the response body. This functionality requires authentication to be enabled.
# @param [Hash] opts the optional parameters
# @option opts [String] :username 
# @option opts [String] :password 
# @option opts [String] :new_password 
# @option opts [String] :confirm_password 
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
Asserts login credentials and upon successful authentication, verifies passwords match and changes users password
Upon a successful login, a JSON Web Token will be returned in the response body. This functionality requires authentication to be enabled.
Asserts login credentials and upon successful authentication verifies passwords match and changes users password Upon a successful login a JSON Web Token will be returned in the response body . This functionality requires authentication to be enabled .
def force_change_password_with_http_info(opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: UserApi.force_change_password ...'
      end
      local_var_path = '/v1/user/forceChangePassword'
      query_params = opts[:query_params] || {}
      header_params = opts[:header_params] || {}
      header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
      header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
      form_params = opts[:form_params] || {}
      form_params['username'] = opts[:'username'] if !opts[:'username'].nil?
      form_params['password'] = opts[:'password'] if !opts[:'password'].nil?
      form_params['newPassword'] = opts[:'new_password'] if !opts[:'new_password'].nil?
      form_params['confirmPassword'] = opts[:'confirm_password'] if !opts[:'confirm_password'].nil?
      post_body = opts[:body] 
      return_type = opts[:return_type] || 'String' 
      auth_names = opts[:auth_names] || ['X-Api-Key']
      new_options = opts.merge(
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names,
        :return_type => return_type
      )
      data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: UserApi#force_change_password\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def force_change_password_with_http_info ( opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: UserApi.force_change_password ...' end local_var_path = '/v1/user/forceChangePassword' query_params = opts [ :query_params ] || { } header_params = opts [ :header_params ] || { } header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'text/plain' ] ) header_params [ 'Content-Type' ] = @api_client . select_header_content_type ( [ 'application/x-www-form-urlencoded' ] ) form_params = opts [ :form_params ] || { } form_params [ 'username' ] = opts [ :' username ' ] if ! opts [ :' username ' ] . nil? form_params [ 'password' ] = opts [ :' password ' ] if ! opts [ :' password ' ] . nil? form_params [ 'newPassword' ] = opts [ :' new_password ' ] if ! opts [ :' new_password ' ] . nil? form_params [ 'confirmPassword' ] = opts [ :' confirm_password ' ] if ! opts [ :' confirm_password ' ] . nil? post_body = opts [ :body ] return_type = opts [ :return_type ] || 'String' auth_names = opts [ :auth_names ] || [ 'X-Api-Key' ] new_options = opts . merge ( :header_params => header_params , :query_params => query_params , :form_params => form_params , :body => post_body , :auth_names => auth_names , :return_type => return_type ) data , status_code , headers = @api_client . call_api ( :POST , local_var_path , new_options ) if @api_client . config . debugging @api_client . config . logger . debug "API called: UserApi#force_change_password\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Asserts login credentials and upon successful authentication, verifies passwords match and changes users password
Upon a successful login, a JSON Web Token will be returned in the response body.
Asserts login credentials and upon successful authentication verifies passwords match and changes users password Upon a successful login a JSON Web Token will be returned in the response body .
# resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # HTTP header 'Content-Type' # form parameters # http body (model) # return_type # auth_names
String data, response status code and response headers
String data response status code and response headers
Array<(String, Integer, Hash)>
opts
None
<not_specific>
opts the optional parameters
opts the optional parameters