aboutsummaryrefslogtreecommitdiff
path: root/src/cyrsasl.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/cyrsasl.erl')
-rw-r--r--src/cyrsasl.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cyrsasl.erl b/src/cyrsasl.erl
index 518bb84ff..b15bcdfbd 100644
--- a/src/cyrsasl.erl
+++ b/src/cyrsasl.erl
@@ -112,12 +112,12 @@ register_mechanism(Mechanism, Module, PasswordType) ->
%%-include("jlib.hrl").
%%check_authzid(_State, Props) ->
%% AuthzId = xml:get_attr_s(authzid, Props),
-%% case jlib:string_to_jid(AuthzId) of
+%% case jid:from_string(AuthzId) of
%% error ->
%% {error, "invalid-authzid"};
%% JID ->
-%% LUser = jlib:nodeprep(xml:get_attr_s(username, Props)),
-%% {U, S, R} = jlib:jid_tolower(JID),
+%% LUser = jid:nodeprep(xml:get_attr_s(username, Props)),
+%% {U, S, R} = jid:tolower(JID),
%% case R of
%% "" ->
%% {error, "invalid-authzid"};
@@ -133,7 +133,7 @@ register_mechanism(Mechanism, Module, PasswordType) ->
check_credentials(_State, Props) ->
User = proplists:get_value(username, Props, <<>>),
- case jlib:nodeprep(User) of
+ case jid:nodeprep(User) of
error -> {error, <<"not-authorized">>};
<<"">> -> {error, <<"not-authorized">>};
_LUser -> ok