@Component
public class OttSecondFactorChannelsextends Object
Decides through which channels a one-time code or link may be the second factor of a signed-in user. The same rule
decides what the second-factor page offers, whether a requested token is delivered at all and whether a presented
one is accepted, so a channel that is not offered can neither be asked for nor used by posting the forms by hand:
never the channel that signed the user in (the same mailbox or phone would be proved twice);
SMS only to a user with a verified phone;
e-mail only to a user without any other confirmed second factor (authenticator app, passkey, verified phone).
The password is reset by e-mail too, so a mailbox is not independent from the password: whoever controls it could
otherwise skip the stronger factor the user enrolled. For a user whose multi-factor authentication was forced by an
administrator before any factor was enrolled, the e-mail is then the only second factor available.