cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

This community is for technical, feature, configuration and deployment questions.
For production deployment issues, please contact the TAC! We will not comment or assist with your TAC case in these forums.
Please see How to Ask the Community for Help for other best practices.

828
Views
1
Helpful
1
Replies
bgajadar
Cisco Employee

Guest Self-Registration with Sponsor print

My customer is looking to provide guest access to self-register their own account. When the guest submit the request it goes to the the sponsor's email (person being visited) and the sponsor will then print out the guest credentials and hand it to the guest.

I was able to change some fields around but also want to restrict email domain as the guest could easily send the login to his/her personal email and bypass the system. So I want to limited the sending to email domain only to the Company's email domain (basically the guest must always send to Corporate email domain.

1 ACCEPTED SOLUTION

Accepted Solutions
Jason Kunst
Cisco Employee

The solution is to do the following:

Under portal page settings

Self-reg page

  • email address field as mandatory
  • uncheck person being visited
  • After registration submission, direct guest to "Login page with instructions"

Under Portal page customization

self-reg page

  • change email address field to 'person being visited'
  • Login page message, change to 'your credentials have been emailed to your sponsor who will print them out'

To validate the email address use the following code

This code is placed in the Optional Content 2 area of the Self-registration page when under the HTML editor (far right on the actions bar):

<script>
     setTimeout(function(){
          $.validator.addMethod("customemailvalidator", function(value, element) {
       return /^\w+@cisco\.com$/.test( value );
     }, 'Please enter a valid email.');
    
     jQuery("[name='guestUser.fieldValues.ui_email_address']").rules("add",{customemailvalidator:true});
     }, 50);
</script>

You can change orange string on your email domain. For example: "foo\.com", "bar\.gov"

View solution in original post

1 REPLY 1
Jason Kunst
Cisco Employee

The solution is to do the following:

Under portal page settings

Self-reg page

  • email address field as mandatory
  • uncheck person being visited
  • After registration submission, direct guest to "Login page with instructions"

Under Portal page customization

self-reg page

  • change email address field to 'person being visited'
  • Login page message, change to 'your credentials have been emailed to your sponsor who will print them out'

To validate the email address use the following code

This code is placed in the Optional Content 2 area of the Self-registration page when under the HTML editor (far right on the actions bar):

<script>
     setTimeout(function(){
          $.validator.addMethod("customemailvalidator", function(value, element) {
       return /^\w+@cisco\.com$/.test( value );
     }, 'Please enter a valid email.');
    
     jQuery("[name='guestUser.fieldValues.ui_email_address']").rules("add",{customemailvalidator:true});
     }, 50);
</script>

You can change orange string on your email domain. For example: "foo\.com", "bar\.gov"

View solution in original post

Create
Recognize Your Peers
Content for Community-Ad

ISE Webinars



Did you miss a previous ISE webinar?

CiscoISE YouTube Channel