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

fixes #6878
Merge pull request #7374 from jdalsem/email-login-maintenance-mode

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