Reverted c447a2131d864cb715c0fb9ba562db67ade2f7c6 because login via https does not work in 6.5.1 anymore