diff options
Diffstat (limited to 'src/cyrsasl.erl')
-rw-r--r-- | src/cyrsasl.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cyrsasl.erl b/src/cyrsasl.erl index cc03a49ce..21fbc9660 100644 --- a/src/cyrsasl.erl +++ b/src/cyrsasl.erl @@ -132,7 +132,7 @@ register_mechanism(Mechanism, Module, PasswordType) -> %% end. check_credentials(_State, Props) -> - User = proplists:get_value(username, Props, <<>>), + User = proplists:get_value(authzid, Props, <<>>), case jid:nodeprep(User) of error -> {error, <<"not-authorized">>}; <<"">> -> {error, <<"not-authorized">>}; |