Community discussions

 
KennyPowers
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 59
Joined: Tue May 05, 2015 6:18 pm

Hotspot Username

Mon May 11, 2015 5:42 pm

Hi,

What would I need to change in login.html so the username is always sent as lowercase?


KP
 
User avatar
ZeroByte
Forum Guru
Forum Guru
Posts: 4051
Joined: Wed May 11, 2011 6:08 pm

Re: Hotspot Username

Mon May 11, 2015 6:00 pm

Change the username field to a different name, and change the actual username field to be a hidden input.
Make a javascript that runs on submit which does the conversion and sets the value of the hidden input as the result of the script.
When given a spoon,
you should not cling to your fork.
The soup will get cold.
 
KennyPowers
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 59
Joined: Tue May 05, 2015 6:18 pm

Re: Hotspot Username

Mon May 11, 2015 6:06 pm

Thanks for the quick reply, would you have an example I have no clue about Javascript.


Thanks
 
User avatar
skot
Long time Member
Long time Member
Posts: 586
Joined: Wed Nov 30, 2011 3:05 am

Re: Hotspot Username

Mon May 11, 2015 6:21 pm

This post does what you want, except it's converting to upper case. To convert to lower case, change toUpperCase() to toLowerCase()
http://forum.mikrotik.com/viewtopic.php ... 03#p384573
I don't need any karma... I have Ιησους Χριστος!

Who is online

Users browsing this forum: No registered users and 20 guests