fixed a bug when logging with iauth
rm a finished TODO