By removing this `else if` you will allow logins even if maintenance is enabled. Move the OpenID check up here, keep the `else if` and add the rest as usual. Make sure the maintenance check is done prior to all login calls so a login call is skipped in case maintenance is enabled.