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

fixes #6878
The maintenance mode is a very heavy lockdown of the site and does not support other login methods with the current approach. This fix at least allows a normal login with an Elgg account.