fix login callback error when use ssl