You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2009/09/05 22:44:11 UTC

svn commit: r811710 - /couchdb/trunk/src/couchdb/couch_httpd_auth.erl

Author: jan
Date: Sat Sep  5 20:44:11 2009
New Revision: 811710

URL: http://svn.apache.org/viewvc?rev=811710&view=rev
Log:
thou shalt make before thou commit, thou shalt make before thou commit, thou shalt make before thou commit

Modified:
    couchdb/trunk/src/couchdb/couch_httpd_auth.erl

Modified: couchdb/trunk/src/couchdb/couch_httpd_auth.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_httpd_auth.erl?rev=811710&r1=811709&r2=811710&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_httpd_auth.erl (original)
+++ couchdb/trunk/src/couchdb/couch_httpd_auth.erl Sat Sep  5 20:44:11 2009
@@ -446,7 +446,7 @@
             Hash = case Password of
                 <<>> -> 
                     CurrentPasswordHash;
-                _P when OldPassword = [] ->
+                _P when OldPassword =:= [] ->
                     throw({forbidden, <<"Old password is incorrect.">>});
                 _Else ->
                     OldPasswordHash = hash_password(OldPassword1, UserSalt),