diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-05-08 12:59:28 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-05-08 12:59:28 +0300 |
commit | 01a2c9fe1202f88f20a5acbc729b627ce0ac3c0a (patch) | |
tree | 4aba0e94650d1311ab5b2da0e74563b1bd02a876 /src/ejabberd_auth_anonymous.erl | |
parent | LOG_PATH macro should be of string type (diff) |
Add type specs for Module:opt_type/1
Diffstat (limited to 'src/ejabberd_auth_anonymous.erl')
-rw-r--r-- | src/ejabberd_auth_anonymous.erl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ejabberd_auth_anonymous.erl b/src/ejabberd_auth_anonymous.erl index a75af709e..5bb2daed7 100644 --- a/src/ejabberd_auth_anonymous.erl +++ b/src/ejabberd_auth_anonymous.erl @@ -236,6 +236,10 @@ plain_password_required() -> false. store_type() -> plain. +-spec opt_type(allow_multiple_connection) -> fun((boolean()) -> boolean()); + (anonymous_protocol) -> fun((sasl_anon | login_anon | both) -> + sasl_anon | login_anon | both); + (atom()) -> [atom()]. opt_type(allow_multiple_connections) -> fun (V) when is_boolean(V) -> V end; opt_type(anonymous_protocol) -> |