diff options
author | Evgeny Khramtsov <ekhramtsov@process-one.net> | 2019-06-27 11:32:54 +0300 |
---|---|---|
committer | Evgeny Khramtsov <ekhramtsov@process-one.net> | 2019-06-27 11:32:54 +0300 |
commit | 2abca350e05e2bf40429a2565663293d0c1356da (patch) | |
tree | 3527275d474a39052d43ecb616d93bc90d395711 /src/ejabberd_piefxis.erl | |
parent | Make sure queue bouncing doesn't yield into infinite recursion (diff) |
Fix type specs
Diffstat (limited to 'src/ejabberd_piefxis.erl')
-rw-r--r-- | src/ejabberd_piefxis.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ejabberd_piefxis.erl b/src/ejabberd_piefxis.erl index 68e5119a9..2b93b4f19 100644 --- a/src/ejabberd_piefxis.erl +++ b/src/ejabberd_piefxis.erl @@ -385,7 +385,7 @@ process_user(#xmlel{name = <<"user">>, attrs = Attrs, children = Els}, PasswordFormat = ejabberd_auth:password_format(LServer), Pass = case PasswordFormat of scram -> - case Password of + case Password of <<"scram:", PassData/binary>> -> parse_scram_password(PassData); P -> P @@ -520,7 +520,7 @@ process_private(Private, State = #state{user = U, server = S}) -> stop("Failed to write private: ~p", [Err]) end. --spec process_vcard(xmlel(), state()) -> {ok, state()} | {error, _}. +-spec process_vcard(xmpp_element(), state()) -> {ok, state()} | {error, _}. process_vcard(El, State = #state{user = U, server = S}) -> JID = jid:make(U, S), IQ = #iq{type = set, id = p1_rand:get_string(), |