Skip to content

Commit

Permalink
Remove unnecessary stringprepping
Browse files Browse the repository at this point in the history
  • Loading branch information
chrzaszcz committed Jul 28, 2021
1 parent 90d6156 commit 21c00e5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/auth/ejabberd_auth_external.erl
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ is_fresh_enough(TimeStampLast, CacheTime) ->
-spec get_last_access(mongooseim:host_type(), jid:luser(), jid:lserver()) ->
online | never | mod_last_required | integer().
get_last_access(HostType, LUser, LServer) ->
JID = jid:make(LUser, LServer, <<>>),
JID = jid:make_noprep(LUser, LServer, <<>>),
case ejabberd_sm:get_user_resources(JID) of
[] ->
case get_last_info(HostType, LUser, LServer) of
Expand All @@ -366,7 +366,6 @@ get_last_access(HostType, LUser, LServer) ->
online
end.


-spec get_last_info(mongooseim:host_type(), jid:luser(), jid:lserver()) ->
{ok, mod_last:timestamp(), mod_last:status()} | not_found | mod_last_required.
get_last_info(HostType, LUser, LServer) ->
Expand Down

0 comments on commit 21c00e5

Please sign in to comment.