fix(login): also allow login by email in maintenance mode

fixes #6878