lib/castronaut/adapters/restful_authentication/user.rb in relevance-castronaut-0.6.1 vs lib/castronaut/adapters/restful_authentication/user.rb in relevance-castronaut-0.7.4
- old
+ new
@@ -33,14 +33,14 @@
if user = find_by_login(username)
if user.crypted_password == Castronaut::Adapters::RestfulAuthentication::User.digest(password, user.salt)
Castronaut::AuthenticationResult.new(username, nil)
else
Castronaut.config.logger.info "#{self} - Unable to authenticate username #{username} due to invalid authentication information"
- Castronaut::AuthenticationResult.new(username, "Unable to authenticate the username #{username}")
+ Castronaut::AuthenticationResult.new(username, "Unable to authenticate")
end
else
Castronaut.config.logger.info "#{self} - Unable to authenticate username #{username} because it could not be found"
- Castronaut::AuthenticationResult.new(username, "Unable to authenticate the username #{username}")
+ Castronaut::AuthenticationResult.new(username, "Unable to authenticate")
end
end
end