Hi!
> to fetch user credentials
> passwords ... are md5 hashes
> sql statement is right.
>
> is there a way to determine if the password matches?
> how can i tell prosody to use md5?
If you're fetching credentials -> you can run SQL queries.
So, why don't you want to use SQL server's MD5 function?
AFAIR, any of MySQL and PgSQL (and, probably SQLite3 too) supports MD5.
--
Best regsrds,
mva