From 641fe64d006232cb981262bf41c4225d2f25b09b Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Wed, 12 Jan 2022 15:48:30 +0100 Subject: [PATCH] docs: ensure authn schema ns for password-hash structs --- apps/emqx_authn/src/emqx_authn_password_hashing.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/emqx_authn/src/emqx_authn_password_hashing.erl b/apps/emqx_authn/src/emqx_authn_password_hashing.erl index b405ce06c..731001498 100644 --- a/apps/emqx_authn/src/emqx_authn_password_hashing.erl +++ b/apps/emqx_authn/src/emqx_authn_password_hashing.erl @@ -41,7 +41,8 @@ -behaviour(hocon_schema). -export([roots/0, - fields/1]). + fields/1, + namespace/0]). -export([type_ro/1, type_rw/1]). @@ -51,6 +52,7 @@ hash/2, check_password/4]). +namespace() -> "authn-hash". roots() -> [pbkdf2, bcrypt, bcrypt_rw, other_algorithms]. fields(bcrypt_rw) ->