Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Reset password should just return false, not throw an error on a 404.
  • Loading branch information
waratuman committed Jul 16, 2013
1 parent 2e42def commit eab492c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/mls/models/account.rb
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion mls.gemspec
Expand Up @@ -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"
Expand Down

0 comments on commit eab492c

Please sign in to comment.