diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_credential_validator_regexp.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_credential_validator_regexp.erl b/src/rabbit_credential_validator_regexp.erl index 187e679416..a8d4f36d1b 100644 --- a/src/rabbit_credential_validator_regexp.erl +++ b/src/rabbit_credential_validator_regexp.erl @@ -42,7 +42,7 @@ validate_password(Password) -> -spec validate_password(rabbit_types:password(), string()) -> 'ok' | {'error', string(), [any()]}. validate_password(Password, Pattern) -> - case re:run(Password, Pattern) of + case re:run(rabbit_data_coercion:to_list(Password), Pattern) of {match, _} -> ok; nomatch -> {error, "provided password does not match the validator regular expression"} end. |
