diff options
| author | Michael Klishin <mklishin@pivotal.io> | 2017-01-06 03:59:49 +0800 |
|---|---|---|
| committer | Michael Klishin <mklishin@pivotal.io> | 2017-01-06 03:59:49 +0800 |
| commit | 19e43f63b16a3364b9bfea0ce5e0ffaf3fe73451 (patch) | |
| tree | 4f15353bdf70db3b57cac7bfbb7a23fad3ef079f | |
| parent | e4a6e388d017bed82ae2fd6eabea30920263afcc (diff) | |
| download | rabbitmq-server-git-19e43f63b16a3364b9bfea0ce5e0ffaf3fe73451.tar.gz | |
Compile
| -rw-r--r-- | src/rabbit_credential_validator_password_regexp.erl | 2 |
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"} |
