Commit Graph
696 Commits
Author SHA1 Message Date
wangyuting bc16df6cb2 * Refactor checkproductpriv and checkprogrampriv and checkprojectpriv and checksprintpriv. 2023-12-21 16:20:31 +08:00
wangyuting cf39d5b216 * Refactor userModel::updateUserView and finish unit test script. 2023-12-21 15:06:25 +08:00
liugang 60ea1746be * userModel: modify the $passwordStrength parameter's type to integer. 2023-12-21 14:24:14 +08:00
chaideqing 2b32f25e29 * Fix bug #42087. 2023-12-21 02:59:07 +00:00
liugang 5c80cd2db2 * userModel: check account property of user object to judge if it's empty. 2023-12-21 10:48:50 +08:00
wangyuting 6360168976 * Adjust authorize unit test script. 2023-12-20 19:28:53 +08:00
liugang 7bd006a280 * userModel: fix bugs found by unit testing. 2023-12-20 19:12:24 +08:00
liugang 63795a0bb7 * userModel: remove the unused unset() statement. 2023-12-20 18:38:03 +08:00
liugang 876f0a9da8 * userModel: check if the properties of user match field settings in database. 2023-12-20 18:36:52 +08:00
liugang 7589645860 + userModel: return false if the passed $users parameter is empty. 2023-12-20 18:35:21 +08:00
wangyuting 23a673db58 * Refactor upgradeModel::grantUserView and finish unit test script. 2023-12-20 16:59:46 +08:00
wangyuting b71da2d1bd * Refactor userModel::getProductMembers and fix computeuserview unit test bug. 2023-12-20 15:26:05 +08:00
liugang 943a6adbe2 * userModel: fix errors found by unit testing. 2023-12-20 14:52:44 +08:00
wangyuting e3cb113d28 * Refactor userModel::computeUserView and finish unit test script. 2023-12-20 09:55:23 +08:00
wangyuting dc13578f77 * Refactor userModel::getParentStageAuthedUsers and finish unit test script. 2023-12-19 15:20:36 +08:00
wangyuting 0bf13958ed * Refactor userModel::authorize and finish unit test script. 2023-12-19 15:03:35 +08:00
liugang 7eb13b19cf * userModel: modify return type in method comment. 2023-12-19 14:34:32 +08:00
wangyuting 09312d0034 * Fix bug where project priv overwrite user priv. 2023-12-19 14:11:40 +08:00
liugang e7161ecede * userModel: fix error of calling undefined property. 2023-12-19 13:31:08 +08:00
liugang e79487c1f7 * userModel: don't prepend vision before group name if the vision list doesn't include the vision. 2023-12-19 10:37:21 +08:00
liugang e57622486e * userModel: refactor the getWeakUsers method to check password with clear text. 2023-12-18 14:16:14 +08:00
liugang 8bf2aff2f1 * user: move the checkTmp method from model.php to zen.php bacause it's only used in zen.php. 2023-12-16 17:21:06 +08:00
liugang d16927814a * userModel: call time() function to simplify code. 2023-12-16 17:16:18 +08:00
liugang 57268b1425 + userModel: auto check whether the data format matches the database field settings. 2023-12-16 16:44:25 +08:00
liugang cefefaa98d + userModel: add comment of parameter. 2023-12-16 10:38:55 +08:00
liugang 47f7228d2e - userModel: remove the unused getListByAccount method. 2023-12-16 09:59:52 +08:00
liugang 6c1ee987b5 - userModel: remove default value of the accounts parameter. 2023-12-16 09:22:36 +08:00
liugang 0511fd15b3 * userModel: rename getByIdList method to getListByIdList. 2023-12-15 10:21:05 +08:00
liugang 60df0ee248 * userModel: call empty to check properties before batch create users. 2023-12-14 11:44:39 +08:00
liugang bb2415e657 * userModel: call empty to check email, phone and mobile of users. 2023-12-14 11:36:04 +08:00
liugang afe0376dce + userModel: check realname and visions before batch update users. 2023-12-14 11:35:01 +08:00
liugang b02a8ec554 * userModel: check realname, visions and password before batch create users. 2023-12-14 09:20:45 +08:00
liumengyi 7473a8b5ee * Optimize code. 2023-12-13 17:37:19 +08:00
liumengyi cb2a225d56 * Fix bug #41466, fix return type error. 2023-12-13 17:14:57 +08:00
liugang eb93e675ae * userModel: fix error of checking if a value exists in an array. 2023-12-13 10:15:10 +08:00
liugang bc29f6b913 * userModel: the access permission of methods is changed from private to public. 2023-12-12 16:18:46 +08:00
liugang 006dba837e * userModel: refactor the saveUserTemplate method. 2023-12-11 16:35:06 +08:00
liugang ad4abc0f5d * userModel: modify method comment and declare parameter type and return type of the isClickable method. 2023-12-11 15:06:27 +08:00
liugang b423f135db * userModel: modify method comment and declare parameter type and return type of the getUserTemplates method. 2023-12-11 15:03:25 +08:00
liugang f620a37dd4 * userModel: remove the unused getPersonalData method. 2023-12-11 14:55:51 +08:00
liugang 680d1a4941 * userModel: refactor the getListForGitLabAPI method. 2023-12-11 14:49:52 +08:00
liugang 7bf65d8920 * userModel: rename the getUserDetailsForAPI method to getListForGitLabAPI. 2023-12-11 14:42:22 +08:00
liugang 1dd1957419 * userModel: refactor the getCanCreateStoryUsers method. 2023-12-11 14:33:58 +08:00
liugang fba716d6b8 * userModel: refactor the checkTmp method. 2023-12-11 14:32:39 +08:00
liugang 1afa689bdd * userModel: refactor the checkPasswordStrength method. 2023-12-11 14:31:50 +08:00
liugang 1941ea7d9a * userModel: refactor the getWeakUsers method. 2023-12-11 14:30:39 +08:00
liugang 470fb5ad52 * userModel: declare parameter type and return type of the deleteContactList method. 2023-12-11 14:29:23 +08:00
liugang 055e7e8352 * userModel: refactor the updateContactList method. 2023-12-11 14:25:37 +08:00
liugang 06892fdb47 * userModel: refactor the createContactList method. 2023-12-11 14:24:31 +08:00
liugang b27030ef7f * userModel: modify method comment and declear parameter type and return type. 2023-12-11 14:22:01 +08:00