- Joined
- Dec 3, 2007
- Messages
- 8,069
- Reaction score
- 12
Hi all.
I repost this topic written on the old forum. Because it was not synchronised here.
Target
The changes

Tools:
I repost this topic written on the old forum. Because it was not synchronised here.
Target
Improve the security for Elastix user GUI.
Usually, the passwords are so simple. You could enter anything with a short password, all is right. It needs to be safer.
Now, we will try to change the module which add any Elastix users for login into Web GUI.
Now, we will try to change the module which add any Elastix users for login into Web GUI.
The changes
You need to edit the file : /var/www/html/modules/userlist/index.php
At the line about 420 & 427 you have two fields: password1 & passord2
bellow, you've got a line which inform that you use a text format for validations like this:
You need to change this value by:
Next, you need to setting up the regex rule within this line:
Replace put your rule here by your custom regex.
With the regex you should be able to apply some rules like for example, put a limit of the lengt for your password. check the content and enabling some characters, special characters...etc.
Do it for both fields of course. At the line about 420 & 427 you have two fields: password1 & passord2
bellow, you've got a line which inform that you use a text format for validations like this:
Code:
"VALIDATION_TYPE" => "text",
Code:
"VALIDATION_TYPE" => "ereg",
Code:
"VALIDATION_EXTRA_PARAM" => " put your rule here "),
With the regex you should be able to apply some rules like for example, put a limit of the lengt for your password. check the content and enabling some characters, special characters...etc.
Tools:
Last edited: