Skip to content

Commit bc70b9d

Browse files
committed
fix [Task]: 新建用户时, 允许填写密码字段、强制修改密码(默认打钩) #6978
1 parent 321d9bc commit bc70b9d

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
name: password
2-
label: Password
3-
type: text
4-
omit: true
5-
hidden: true
6-
sort_no: 340
2+
label: 密码
3+
type: password
4+
sort_no: 355
5+
visible_on: "{{recordId ? false : true}}"

services/standard-space/main/default/objects/space_users/fields/password_expired.field.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ type: boolean
44
omit: false
55
hidden: false
66
sort_no: 360
7-
visible_on: "{{recordId ? true : false}}"
7+
defaultValue: true

services/standard-space/main/default/triggers/space_users.trigger.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @Author: [email protected]
33
* @Date: 2022-12-07 14:19:57
44
* @LastEditors: [email protected]
5-
* @LastEditTime: 2024-03-22 09:57:48
5+
* @LastEditTime: 2024-09-09 17:39:13
66
* @Description:
77
*/
88
"use strict";
@@ -472,7 +472,7 @@ module.exports = {
472472
password.parsePassword(doc.password, options);
473473
delete doc.password;
474474
}
475-
475+
options.password_expired = doc.password_expired
476476
doc.user = (await userObj.insert(options))._id;
477477
}
478478
if (!doc.user) {

0 commit comments

Comments
 (0)