Просмотр исходного кода

docs: ensure authn schema ns for password-hash structs

Zaiming (Stone) Shi 4 лет назад
Родитель
Сommit
641fe64d00
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      apps/emqx_authn/src/emqx_authn_password_hashing.erl

+ 3 - 1
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) ->