aboutsummaryrefslogtreecommitdiff
path: root/src/extauth.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/extauth.erl')
-rw-r--r--src/extauth.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/extauth.erl b/src/extauth.erl
index c6f25102c..54f44953c 100644
--- a/src/extauth.erl
+++ b/src/extauth.erl
@@ -154,6 +154,8 @@ encode(L) -> str:join(L, <<":">>).
decode([0, 0]) -> false;
decode([0, 1]) -> true.
+-spec opt_type(extauth_instances) -> fun((pos_integer()) -> pos_integer());
+ (atom()) -> [atom()].
opt_type(extauth_instances) ->
fun (V) when is_integer(V), V > 0 -> V end;
opt_type(_) -> [extauth_instances].