-
Notifications
You must be signed in to change notification settings - Fork 390
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix [Task]: 新建用户时, 允许填写密码字段、强制修改密码(默认打钩) #6978
- Loading branch information
1 parent
321d9bc
commit bc70b9d
Showing
3 changed files
with
7 additions
and
8 deletions.
There are no files selected for viewing
9 changes: 4 additions & 5 deletions
9
services/standard-space/main/default/objects/space_users/fields/password.field.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ type: boolean | |
omit: false | ||
hidden: false | ||
sort_no: 360 | ||
visible_on: "{{recordId ? true : false}}" | ||
defaultValue: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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"; | ||
|
@@ -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) { | ||
|