Script to authentication user?

Can I authenticate a user hotspot with any script?
I know that i can run a remote script by ssh,
but I don’t know if I could force a authentication from a script.

I see in the terminal the option bellow

/ip hotspot active> add

but I don’t know if this command is util.

appreciate any help (script, idea, or document).

Thanks.

Don’t know if I understand your question. Do u want to authenticate user on hotspot?

Yes, i want authenticate user from a script.

My idea:

Thanks.

Hi!

Has anyone solved this problem? I need this feature or same.

Please anybody help me!! Thanks

The part between the two green arrows in the diagram above is, and has been, non existent.

However, the end goal can still be emulated with a very simple adjustment: Make the action attribute of the external login page’s form be the alogin.html page.

That way, you still have the external page dictate the look of the login page, but you still have the authentication being performed at the router (which is really the part that’s limited).

If the reason you want an external page to begin with is because you need to do something in addition to “simply” logging a user in, you can set an “on login” script at the router, which can initiate an HTTP request to the server.

Alternatively, you can make the external form’s action NOT be the alogin.html page, do whatever you need to do, and THEN redirect the user to “alogin.html”, where they’ll be logged in.