lib/parse/user.rb in parse-ruby-client-0.0.5 vs lib/parse/user.rb in parse-ruby-client-0.0.6
- old
+ new
@@ -15,9 +15,14 @@
response = Parse.client.request(Parse::Protocol::USER_LOGIN_URI, :get, nil, body)
new(response)
end
+ def self.reset_password(email)
+ body = {"email" => email}
+ Parse.client.post(Parse::Protocol::PASSWORD_RESET_URI, body)
+ end
+
def initialize(data = nil)
@class_name = Parse::Protocol::CLASS_USER
#stringify symbol keys
data["username"] = data[:username] if data[:username]
\ No newline at end of file