summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2009-09-05 20:44:11 +0000
committerJan Lehnardt <jan@apache.org>2009-09-05 20:44:11 +0000
commit1a92fdce74a8978fac01473b5fdb098af4de3f15 (patch)
tree0e1a661bc236bb783dedc02dd5b9f6148a083391 /src
parentaa5daeca5c54432e6b985508fadcd3d85cc5388d (diff)
thou shalt make before thou commit, thou shalt make before thou commit, thou shalt make before thou commit
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@811710 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/couchdb/couch_httpd_auth.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_httpd_auth.erl b/src/couchdb/couch_httpd_auth.erl
index 522c0266..c77376b2 100644
--- a/src/couchdb/couch_httpd_auth.erl
+++ b/src/couchdb/couch_httpd_auth.erl
@@ -446,7 +446,7 @@ update_user_req(#httpd{method='PUT', mochi_req=MochiReq, user_ctx=UserCtx}=Req,
Hash = case Password of
<<>> ->
CurrentPasswordHash;
- _P when OldPassword = [] ->
+ _P when OldPassword =:= [] ->
throw({forbidden, <<"Old password is incorrect.">>});
_Else ->
OldPasswordHash = hash_password(OldPassword1, UserSalt),