cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3255
Views
8
Helpful
8
Replies

ISE Credentialed guest Portal hide username in login box

Jonathon Porter
Level 1
Level 1

Hello,

I need help with the jQuery or jscript with ISE 2.2, to populate and hide the login text box for  a sponsored portal page. Users should only see the password box on the portal page.

This is the code I have right now, but currently stuck.

<script>

jQuery(window).load(function() {

jQuery("input[name='user.username']").val("LOGIN");

});

</script>

Thanks.

1 Accepted Solution

Accepted Solutions

Jonathon Porter
Level 1
Level 1

With the help of paul@berbee here was the missing code I needed to add to the optional content 2.

<script>

portalloginForm.elements["user.username"].value = 'UserName-test';

portalloginForm.elements["user.username"].style.visibility = 'hidden';

portalloginForm.elements["user.username"].type = 'hidden';

</script>

View solution in original post

8 Replies 8

paul
Level 10
Level 10

I don't know the jquery syntax but this works to hide password field and could be modified for username:

<script>

portalloginForm.elements["user.password"].value = '0';

portalloginForm.elements["user.password"].style.visibility = 'hidden';

portalloginForm.elements["user.password"].type = 'hidden';

</script>

What are you trying to accomplish by hiding the username?

HI Paul, its because there is no other way to create a simply password only with auto rotation with ISE, so have to hack it a little.

Ahh I figured you might be doing something like that. So using a normal hotspot portal with passcode and manually changing the passcode every month is not an option? You could also do an API, but that is probably overkill.

API is considered to custom for this build so we are pointing it to an external free radius with a bash script that updates a single user for password rotation.  The other option requires budget that doesnt exist for the password/access code updates.

Makes sense. I am sure you tested this already, but because you are using an External RADIUS server in the authentication sequence the “guest” user will be treated as an Employee for Endpoint Identity Group mapping. So in the guest portal make sure to map the Employee use case to the desired endpoint identity group and use that in your rule structure.

Paul Haferman

Office- 920.996.3011

Cell- 920.284.9250

Not sure what you mean by that. I have had to set up an external Radius server and will have to use a Autho rule to point it that way.

Feel free to DM me.

Jonathon Porter
Level 1
Level 1

With the help of paul@berbee here was the missing code I needed to add to the optional content 2.

<script>

portalloginForm.elements["user.username"].value = 'UserName-test';

portalloginForm.elements["user.username"].style.visibility = 'hidden';

portalloginForm.elements["user.username"].type = 'hidden';

</script>

Hi Jonathon , 

 

Just wanted to know if your script is still working as you expect and if there was a possibility to share the script that you put in Optional content 2 in the login form ? 

 

Thanks

Regards 

Marc 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: