lib/mattermost/endpoint/users.rb in mattermost-api4-ruby-0.0.5 vs lib/mattermost/endpoint/users.rb in mattermost-api4-ruby-0.0.6

- old
+ new

@@ -1,11 +1,11 @@ require 'json' module Mattermost module Endpoint module Users - def getMe + def get_me get_user("me") end def create_user(user) post("/users", :body => user.to_json) @@ -185,9 +185,17 @@ post("/users/tokens/disable", :body => {:token => token}.to_json) end def enable_personal_access_token(token) post("/users/tokens/enable", :body => {:token => token}.to_json) + end + + def update_user_authentication_method(user_id, auth_service, password = "", auth_data = "") + put("/users/#{user_id}/auth", :body => { + :auth_data => auth_data, + :auth_service => auth_service, + :password => password + }.to_json) end end end end