diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2010-11-19 15:54:42 +0000 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2010-11-19 15:54:42 +0000 |
commit | f56bc4635a20113671874cdb1fa2af3f5c9487dc (patch) | |
tree | f53abc96d4fa15124a770e451ea880a08ad2e521 /src/rabbit_access_control.erl | |
parent | 88913f8e9bc1145898f1e50f1315675e6b215e72 (diff) | |
download | rabbitmq-server-f56bc4635a20113671874cdb1fa2af3f5c9487dc.tar.gz |
Be consistent about refused return
Diffstat (limited to 'src/rabbit_access_control.erl')
-rw-r--r-- | src/rabbit_access_control.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_access_control.erl b/src/rabbit_access_control.erl index 2dc8f172..30bcc9f3 100644 --- a/src/rabbit_access_control.erl +++ b/src/rabbit_access_control.erl @@ -112,8 +112,8 @@ check_user_pass_login(Username, Pass) -> case lookup_user(Username) of {ok, User} -> case check_password(Pass, User#user.password_hash) of - true -> {ok, User}; - _ -> refused + true -> {ok, User}; + _ -> {refused, Username} end; {error, not_found} -> {refused, Username} |