[OpenSIPS-Users] Opensips-CP Required Fields

Alex Ionescu alex at opensips.org
Tue May 25 09:44:17 CEST 2010


Hi Sven,

Well, to prevent fields from being required you have to do a very simple 
thing:
- edit the file : 
/var/www/opensips-cp/web/tools/users/user_management/lib/user_management.test.inc.php
- for example, if you want to stop alias username from being required 
just comment the following lines :

if  ($form_valid)
      if  ($alias=="") {
          $form_valid=false;
          $form_error="- invalid<b>Alias</b>  field -";
     }

You can do the same for the other fields - just find them (the names are very intuitive) and comment the lines above.
Unfortunately, for now, there is no way of "configuring" what fields are required and what fields are not.
Hope this helps you !

Regards,
Alex

On 5/18/2010 23:21, Sven Schulz wrote:
> Running opensips 1.6.2 and opensips-cp 4.0
>
> I would like to prevent certain required fields in opensips-cp from 
> being... required. For example, when adding a new user (Users -> Users 
> Management-> Add new user) I don't want alias username and email to be 
> a required field. Where can I set this up?
>
>
> Sven Schulz
> Penn State University
> Telecommunications and Network Services
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>    


-- 
Alex Ionescu
www.voice-system.ro  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100525/5bfc345e/attachment.htm 


More information about the Users mailing list