@user_3322753 hi!
You can configure the multi-mode authentication to implement it.
Configuring the MAC address-prioritized Portal authentication allows the detection, if the access users are authenticated by the MAC address authentication server.
If the access user MAC address has been bound to the MAC address authentication server, the user could access the internet.
If the binding entry doesn't exist, the AC/switch will redirect the traffic to the portal authentication server and the traffic will trigger the portal authentication.
After the user has passed the portal authentication, the corresponding entry will be recorded on the MAC authentication server.