summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Klishin <mklishin@pivotal.io>2017-01-06 03:59:49 +0800
committerMichael Klishin <mklishin@pivotal.io>2017-01-06 03:59:49 +0800
commit19e43f63b16a3364b9bfea0ce5e0ffaf3fe73451 (patch)
tree4f15353bdf70db3b57cac7bfbb7a23fad3ef079f /src
parente4a6e388d017bed82ae2fd6eabea30920263afcc (diff)
downloadrabbitmq-server-git-19e43f63b16a3364b9bfea0ce5e0ffaf3fe73451.tar.gz
Compile
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_credential_validator_password_regexp.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_credential_validator_password_regexp.erl b/src/rabbit_credential_validator_password_regexp.erl
index a23e7a47a7..b516175126 100644
--- a/src/rabbit_credential_validator_password_regexp.erl
+++ b/src/rabbit_credential_validator_password_regexp.erl
@@ -44,7 +44,7 @@ validate(Username, Password) ->
-spec validate(rabbit_types:username(), rabbit_types:password(), string()) -> 'ok' | {'error', string(), [any()]}.
-validate(Username, Password, Pattern) ->
+validate(_Username, Password, Pattern) ->
case re:run(rabbit_data_coercion:to_list(Password), Pattern) of
{match, _} -> ok;
nomatch -> {error, "provided password does not match the validator regular expression"}