summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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"}