Wireless Access

last person joined: 16 hours ago 

Access network design for branch, remote, outdoor, and campus locations with HPE Aruba Networking access points and mobility controllers.

Clearpass redirections based upon username field

This thread has been viewed 0 times
  • 1.  Clearpass redirections based upon username field

    Posted Apr 06, 2017 06:18 PM

    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!!!