Skip to content
Browse files

minor: fix

  • Loading branch information...
1 parent e3d7460 commit 9d51f49339bfd3df271a238cdc31df6d827d7449 @banker banker committed Mar 1, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/mongo/db.rb
View
2 lib/mongo/db.rb
@@ -96,7 +96,7 @@ def authenticate(username, password, save_auth=true)
auth['nonce'] = nonce
auth['key'] = Digest::MD5.hexdigest("#{nonce}#{username}#{hash_password(username, password)}")
if ok?(command(auth))
- if save_authorization
+ if save_auth
@connection.add_auth(@name, username, password)
end
true

0 comments on commit 9d51f49

Please sign in to comment.
Something went wrong with that request. Please try again.