Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moved password reset and update to new api
- Loading branch information
1 parent
b4d4738
commit 57ea171
Showing
7 changed files
with
31 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,17 @@ | |||
class Account < Cloudspokes | |||
|
|||
require 'cloud_spokes' | |||
|
|||
def self.reset_password(name) | |||
set_api_header_key | |||
request_url = ENV['CS_API_URL'] + "/accounts/reset_password/#{esc name}" | |||
get(request_url)['response'] | |||
end | |||
|
|||
# moved to new api | |||
def self.update_password(membername, passcode, newpassword) | |||
set_api_header_key | |||
put(ENV['CS_API_URL'] + "/accounts/update_password/#{esc membername}?passcode=#{esc passcode}&new_password=#{esc newpassword}")['response'] | |||
end | |||
|
|||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.