2FA using own xmpp server

Hi,

From the news: Nextcloud 14 now supports Signal and Telegram for 2FA.

I wander if we can use our existing ejabberd server for 2FA.
The idea is that, when user try to login to Nextcloud account, a message will send to users’ XMPP Apps in their mobile phones and users need to key in the additional code (which in the message) to the login screen of Nextcloud.

Thanks,
Jacky

Yes that would be great. I requested it already a while ago: