Permalink
Browse files

Reset password should just return false, not throw an error on a 404.

  • Loading branch information...
1 parent 2e42def commit eab492c2191716ebb9d9018d57095edf37edd6d7 @waratuman waratuman committed Jul 16, 2013
Showing with 2 additions and 3 deletions.
  1. +1 −2 lib/mls/models/account.rb
  2. +1 −1 mls.gemspec
@@ -128,8 +128,7 @@ def authenticate(attrs_or_email, password=nil)
end
def reset_password!(email)
- MLS.put('/account/reset_password', {:email => email}, 400) do |response, code|
- MLS::Account::Parser.update(self, response.body)
+ MLS.put('/account/reset_password', {:email => email}, 400, 404) do |response, code|
code == 200
end
end
View
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
Gem::Specification.new do |s|
s.name = "mls"
- s.version = '0.5.7'
+ s.version = '0.5.8'
s.authors = ["James R. Bracy", "Jon Bracy"]
s.email = ["james@42floors.com"]
s.homepage = "http://mls.42floors.com"

0 comments on commit eab492c

Please sign in to comment.