Page 1 of 1

hotspot trial user email

Posted: Thu Aug 17, 2023 12:13 am
by joyopd
Hello everyone.

I'm trying to configure hotspot in user trial mode and obtain email from user.
According to this https://wiki.mikrotik.com/wiki/Manual:C ... ng_Hotspot it should be possible.
password - either plain-text password (in case of PAP authentication) or MD5 hash of chap-id variable, password and CHAP challenge (in case of CHAP authentication). This value is used as e-mail address for trial users
Any idea how to set email address for dynamically created trial user from login.html page?
By default there is only MAC address sent there.
<p class="info $(if error)alert$(endif)">
	$(if error == "")Please log in to use the internet hotspot service $(if trial == 'yes')<br />Free trial available, <a href="$(link-login-only)?dst=$(link-orig-esc)&amp;username=T-$(mac-esc)&amp;>click here</a>.$(endif)
	$(endif)

	$(if error)$(error)$(endif)
</p>
Thank you