diff --git a/package-lock.json b/package-lock.json index 16b745dab5..e00b9dd221 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "dependencies": { "@analytics/google-analytics": "^1.0.5", "@analytics/google-tag-manager": "^0.5.3", - "@appwrite.io/console": "0.2.0", + "@appwrite.io/console": "npm:christy-console@^0.3.0", "@appwrite.io/pink": "^0.0.6-rc.10", "@popperjs/core": "^2.11.6", "@sentry/svelte": "^7.44.2", @@ -154,9 +154,10 @@ "integrity": "sha512-1Yw7u/COtxx06BfwlI+kVhsa/upKYzmCNrT4c8QDeCY2KMYlnijkUjtHiPU08HxyTIVB5j6d75O0YWVIHwQS8g==" }, "node_modules/@appwrite.io/console": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/@appwrite.io/console/-/console-0.2.0.tgz", - "integrity": "sha512-jgFYoskSCWaesF8zfsgYoTEKfyn6Kq3R9c5sM4AH2H+B/hmT8jwu9c3UU+LHBZ3BLdB9Zm3xOMa4bPyiQwzSeQ==", + "name": "christy-console", + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/christy-console/-/christy-console-0.3.0.tgz", + "integrity": "sha512-EE2HbMm6ITE23VXrwVQ5VEvke9tf5OmaiUBlhkC+iuL+CkBw+n9dRxpCQvZil6P9ZbFSoCbK+QHGzM3R72c2BQ==", "dependencies": { "cross-fetch": "3.1.5", "isomorphic-form-data": "2.0.0" diff --git a/package.json b/package.json index ffe99bf338..370b9cce3e 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ }, "dependencies": { "@analytics/google-analytics": "^1.0.5", - "@appwrite.io/console": "0.2.0", + "@appwrite.io/console": "npm:christy-console@^0.3.0", "@appwrite.io/pink": "^0.0.6-rc.10", "@analytics/google-tag-manager": "^0.5.3", "@popperjs/core": "^2.11.6", diff --git a/src/lib/actions/analytics.ts b/src/lib/actions/analytics.ts index e68e166c20..155fec5c57 100644 --- a/src/lib/actions/analytics.ts +++ b/src/lib/actions/analytics.ts @@ -153,6 +153,7 @@ export enum Submit { AuthStatusUpdate = 'submit_auth_status_update', AuthPasswordHistoryUpdate = 'submit_auth_password_history_limit_update', AuthPasswordDictionaryUpdate = 'submit_auth_password_dictionary_update', + AuthPersonalDataCheckUpdate = 'submit_auth_personal_data_check_update', SessionsLengthUpdate = 'submit_sessions_length_update', SessionsLimitUpdate = 'submit_sessions_limit_update', SessionDelete = 'submit_session_delete', diff --git a/src/routes/console/project-[project]/auth/security/+page.svelte b/src/routes/console/project-[project]/auth/security/+page.svelte index c9c4119104..f69b913952 100644 --- a/src/routes/console/project-[project]/auth/security/+page.svelte +++ b/src/routes/console/project-[project]/auth/security/+page.svelte @@ -2,6 +2,7 @@ import { Container } from '$lib/layout'; import UpdatePasswordDictionary from './updatePasswordDictionary.svelte'; import UpdatePasswordHistory from './updatePasswordHistory.svelte'; + import UpdatePersonalDataCheck from './updatePersonalDataCheck.svelte'; import UpdateSessionLength from './updateSessionLength.svelte'; import UpdateSessionsLimit from './updateSessionsLimit.svelte'; import UpdateUsersLimit from './updateUsersLimit.svelte'; @@ -13,4 +14,5 @@ + diff --git a/src/routes/console/project-[project]/auth/security/updatePasswordHistory.svelte b/src/routes/console/project-[project]/auth/security/updatePasswordHistory.svelte index 27a28b5d14..e370787975 100644 --- a/src/routes/console/project-[project]/auth/security/updatePasswordHistory.svelte +++ b/src/routes/console/project-[project]/auth/security/updatePasswordHistory.svelte @@ -44,7 +44,7 @@

diff --git a/src/routes/console/project-[project]/auth/security/updatePersonalDataCheck.svelte b/src/routes/console/project-[project]/auth/security/updatePersonalDataCheck.svelte new file mode 100644 index 0000000000..140eebb707 --- /dev/null +++ b/src/routes/console/project-[project]/auth/security/updatePersonalDataCheck.svelte @@ -0,0 +1,57 @@ + + +

+ + Personal Data + + + + +

+ Do now allow passwords that contain any part of the user's personal data. This + includes the user's name, email, or phone. +

+
+ + + + +
+