Commit 6eac56c1 authored by Vitaly Lipatov's avatar Vitaly Lipatov

jabber_password: fixes

parent ab1e1d92
......@@ -20,11 +20,12 @@ FORCEEMAIL=$2
PASSWORD=$(mysql_query "SELECT password FROM authreg WHERE \`username\` = \"$LOGIN\" AND \`realm\` = \"$REALM\" ")
test -n "$PASSWORD" || exit
echo "Password: $PASSWORD"
#echo "Password: $PASSWORD"
if [ -z "$FORCEEMAIL" ] ; then
USEREMAIL=$(mysql_query "SELECT email FROM vcard WHERE \`collection-owner\` = '$LOGIN@$REALM' ")
[ -n "$USEREMAIL" ] || USEREMAIL="$LOGIN@$REALM"
else
USEREMAIL=$FORCEEMAIL
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment