I started to solve this problem too. And I have an idea how to solve it without Radius.
1 the user enters a number and clicks a button (submit)
2 the system does not find that user. writes in the log error “login failed” to mention user not authenticated.
3 script parses the log file or memory for an error of this type, and as soon as sees it, generates a password and sends an sms and adds the user to the hotspot
4 at this time the user opens the field to enter your code and come sms. The following authorization is successful!
Now the question guru. as a means mikrotik script to extract a substring of specified length from the file or memory knowing the context?
If this is not possible, you can write syslog server to another. Then, analyze it and send commands to mikrotik
Oh sure. At the moment the script is working in test mode and is being finalized in accordance with the needs for a particular solution. At the moment the script has this view:
I built my own self-hosted captive portal for MikroTik RouterOS 7 that does exactly this: guests enter their phone number, get a one-time code by SMS (Clickatell or any SMS gateway via webhook), and access is enforced through RADIUS. It also supports voucher codes, Telegram/Gotify approval and social login.
It’s still beta (:edge). Tested so far:
Portal container on Docker in a VM
RouterOS x86 as hotspot router (RADIUS client)
Chateau 5G as hotspot router with local guest Wi-Fi
Guest SSID via CAPsMAN
Running the container directly on RouterOS is supported but not tested yet.