Security

 View Only
  • 1.  whitelist of emails for sponsors

    Posted Apr 05, 2019 09:46 AM

    Hello i would like to know how to do the whitelist of users that can be sponsors in a company

    I tried the fallowing without sucess

     

    In the form in validator propierties on sponsorship email i put on validator isValidEmail

    And on  validator argument

     

    array (
    'allow' =>
    array (
    0 => 'cdelarosa@abc.com',

    1 => 'cdelarosa2@abc.com',
    ),
    'deny' =>
    array (
    ),
    )

     

    Anyone can enlight me in what i would need to change for this to work?

     

    Cheers

    Carlos



  • 2.  RE: whitelist of emails for sponsors

    Posted Apr 08, 2019 07:37 PM

    If you have a fixed list of options you are whitelisting, then the easiest thing is to set the Validator to IsInOptionsList.  That should pop open the Options Generator, which you want to set to Use Options.  Then in that text area put one email per line.

     

    If you are not secretive you can change sponsor_email itself to a Drop Down in the UI selector.  Keep the validator the same.  If you want a prettier display add a pipe '|' then the label in each line.  

    cdelarosa@abc.com | East Region (Carlos)
    cdelarosa2@abc.com | West Region (Carlos2)

     

    Note the more advanced way for all this is to use the LDAP lookups and use a custom LDAP filter to control and lockdown everyone within your central server.  



  • 3.  RE: whitelist of emails for sponsors

    Posted Apr 09, 2019 10:17 AM

    Hello gbenedict 

    Thank you for your reply

     

    I have done the option number 2 you mention and i did ask the client if he wanted something liek that but he said that the list would be too long and he didnt like that idea.

     

    Ill try your option number 1.  I have never configured that before.

     

    Thank you 

     

    Cheers

    Carlos