Skip to content

Commit

Permalink
fix [Task]: 新建用户时, 允许填写密码字段、强制修改密码(默认打钩) #6978
Browse files Browse the repository at this point in the history
  • Loading branch information
baozhoutao committed Sep 9, 2024
1 parent 321d9bc commit bc70b9d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: password
label: Password
type: text
omit: true
hidden: true
sort_no: 340
label: 密码
type: password
sort_no: 355
visible_on: "{{recordId ? false : true}}"
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ type: boolean
omit: false
hidden: false
sort_no: 360
visible_on: "{{recordId ? true : false}}"
defaultValue: true
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: [email protected]
* @Date: 2022-12-07 14:19:57
* @LastEditors: [email protected]
* @LastEditTime: 2024-03-22 09:57:48
* @LastEditTime: 2024-09-09 17:39:13
* @Description:
*/
"use strict";
Expand Down Expand Up @@ -472,7 +472,7 @@ module.exports = {
password.parsePassword(doc.password, options);
delete doc.password;
}

options.password_expired = doc.password_expired
doc.user = (await userObj.insert(options))._id;
}
if (!doc.user) {
Expand Down

0 comments on commit bc70b9d

Please sign in to comment.