Wireless Access

Reply
Occasional Contributor I
Posts: 10
Registered: ‎05-11-2013

Clearpass redirections based upon username field

Hi all, not sure if this got posted in the right place, but I've been playing around with the javascript on the weblogin & self-registration pages in clearpass -- basically to keep moving users to authenticate on different pages instead of getting logged in right away.

 

What I would like is this, if the javascript could check the username field and match it to a few choices, each choice would bring the user to a different page.

 

Something along the lines of below. I've tried various methods of retrieving the username field but nothing seems to be doing it.

 

var AccessCode = document.getElementById(“username").value;

if (AccessCode == "12345"){

window.location.replace("testingYEScode.php");}

else {

window.location.replace("testingNOcode.php");}

 

 

Could anyone tell me what I'm doing wrong please? I've been banging my head against the wall for the past few days...

 

thank you!!!

Search Airheads
Showing results for 
Search instead for 
Did you mean: