Mantis when the default installation is complete, the administrator creates the user, but cannot set the user password, which is modified only by the user by the message. Unable to accommodate some cases without a unified mailbox, the mailbox verification method is now turned off and the administrator sets the user password method validation by
No message verification:
Added in config_inc.php:
$g _send_reset_password = OFF; #是否通过EMIAL发送密码
$g _allow_blank_email = on; #是否允许不填写EMAIL
Administrator Control user password (GO):
1) Modify the file manage_user_edit_page.php
Locate <!--email-and paste the following code behind the email area:
<!--Password -to-echo helper_alternate_class (1)?>> class= "category" Width= " 30% "> echo " Password (change only) "?: </td> <td width=" 70% "> <input Type= "text" size= "maxlength=" name= "password" value= "/> </td> </tr>
2) Modify the file manage_user_update.php
In $f_user_id = Gpc_get_int (' user_id '), paste the following code below the line:
$f _pass = gpc_get_string (' password ');
3) or in the file manage_user_update.php
Locate the line: $result = Db_query_bound ($query, $query _params);
Some versions are: $result = Db_query ($query);
Paste the following code below the line:
Reset the password if specified.
if ($f _pass) User_set_password ($f _user_id, $f _pass);
This increases the password (change only): A column for the administrator to modify the user's password (but only if the administrator does not tick protect one when adding users), otherwise the administrator cannot modify the user password.
Administrator Add Testers (GO):
In config_inc.php, add $g_access_levels_enum_string = ' 10: The reviewer, 25: Rapporteur, 40: Modifier, 55: Developer, 60: Tester, 70: Manager, 90: Administrator ';
In Strings_chinese_simplified.txt of the Lang directory, find and modify $s_access_levels_enum_string = ' 10: Reviewer, 25: Rapporteur, 40: Modifier, 55: Developer, 60: Tester , 70: Manager, 90: Administrator ';
In the root directory, create a new custom_constants_inc.php file that writes:
<?php
Define (' ANONYMOUS ', 5);
Define (' TESTER ', 60);
?>
Reprinted from: http://blog.csdn.net/njchenyi/article/details/9053331
Go Mantis Administrator control password, registration without mail verification, add testers