From 614720cb4224e78e63ae9dcd6db9bd7a716988c0 Mon Sep 17 00:00:00 2001
From: YANG QIA <2013xile@gmail.com>
Date: Sat, 11 Jan 2025 15:12:50 +0800
Subject: [PATCH 1/2] fix(users): disable browser autofill when setting
passwords for users in user management (#6041)
* fix(users): disable browser autofill when setting passwords for users in user management
* chore: update
* fix: update
* chore: update
---
.../@nocobase/plugin-users/src/client/PasswordField.tsx | 2 +-
.../plugins/@nocobase/plugin-users/src/client/schemas/users.ts | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/packages/plugins/@nocobase/plugin-users/src/client/PasswordField.tsx b/packages/plugins/@nocobase/plugin-users/src/client/PasswordField.tsx
index 2ca8aa6696..7a7c8f3cc7 100644
--- a/packages/plugins/@nocobase/plugin-users/src/client/PasswordField.tsx
+++ b/packages/plugins/@nocobase/plugin-users/src/client/PasswordField.tsx
@@ -39,7 +39,7 @@ export const PasswordField: React.FC = () => {
}}
value={field.value}
onChange={(e: any) => field.setValue(e.target.value)}
- autoComplete="off"
+ autoComplete="new-password"
/>
diff --git a/packages/plugins/@nocobase/plugin-users/src/client/schemas/users.ts b/packages/plugins/@nocobase/plugin-users/src/client/schemas/users.ts
index 0aeb6a2ddb..01acef554a 100644
--- a/packages/plugins/@nocobase/plugin-users/src/client/schemas/users.ts
+++ b/packages/plugins/@nocobase/plugin-users/src/client/schemas/users.ts
@@ -230,6 +230,9 @@ export const usersSchema: ISchema = {
password: {
'x-component': 'CollectionField',
'x-decorator': 'FormItem',
+ 'x-component-props': {
+ autoComplete: 'new-password',
+ },
required: true,
},
roles: {
From 00c9944eda0dff3e31679b2bf14a861f5c7023b2 Mon Sep 17 00:00:00 2001
From: chenos
Date: Sat, 11 Jan 2025 22:53:51 +0800
Subject: [PATCH 2/2] chore: update Dockerfile
---
Dockerfile | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/Dockerfile b/Dockerfile
index 662dfdbdb2..9dd1ea3979 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -62,7 +62,16 @@ RUN apt-get update && apt-get install -y --no-install-recommends wget gnupg \
RUN sh -c 'echo "deb http://mirrors.ustc.edu.cn/postgresql/repos/apt bookworm-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
RUN wget --quiet -O - http://mirrors.ustc.edu.cn/postgresql/repos/apt/ACCC4CF8.asc | apt-key add -
-RUN apt-get update && apt-get -y --no-install-recommends install nginx libaio1 postgresql-client-16 postgresql-client-17 \
+RUN apt-get update && apt-get -y --no-install-recommends install \
+ nginx \
+ libaio1 \
+ postgresql-client-16 \
+ postgresql-client-17 \
+ libfreetype6 \
+ fontconfig \
+ libgssapi-krb5-2 \
+ ttf-mscorefonts-installer \
+ fonts-wqy-zenhei \
&& rm -rf /var/lib/apt/lists/*
RUN rm -rf /etc/nginx/sites-enabled/default