diff --git a/src/lib/actions/analytics.ts b/src/lib/actions/analytics.ts index 96b29d3a2..9245131ed 100644 --- a/src/lib/actions/analytics.ts +++ b/src/lib/actions/analytics.ts @@ -141,6 +141,8 @@ export enum Submit { TeamUpdateName = 'submit_team_update_name', AuthLimitUpdate = 'submit_auth_limit_update', AuthStatusUpdate = 'submit_auth_status_update', + AuthPasswordHistoryUpdate = 'submit_auth_password_history_limit_update', + AuthPasswordDictionaryUpdate = 'submit_auth_password_dictionary_update', SessionsLengthUpdate = 'submit_sessions_length_update', SessionsLimitUpdate = 'submit_sessions_limit_update', SessionDelete = 'submit_session_delete', diff --git a/src/lib/components/index.ts b/src/lib/components/index.ts index 3d69aa528..5a9db65b2 100644 --- a/src/lib/components/index.ts +++ b/src/lib/components/index.ts @@ -1,6 +1,7 @@ export { default as Modal } from './modal.svelte'; export { default as Pagination } from './pagination.svelte'; export { default as PaginationInline } from './paginationInline.svelte'; +export { default as Paginator } from './paginator.svelte'; export { default as Card } from './card.svelte'; export { default as CardGrid } from './cardGrid.svelte'; export { default as CardContainer } from './cardContainer.svelte'; diff --git a/src/lib/components/paginator.svelte b/src/lib/components/paginator.svelte new file mode 100644 index 000000000..36849247a --- /dev/null +++ b/src/lib/components/paginator.svelte @@ -0,0 +1,18 @@ + + + + +
+

Total results: {total}

+ +
diff --git a/src/lib/layout/navigation.svelte b/src/lib/layout/navigation.svelte index bd2a9fbae..15790203b 100644 --- a/src/lib/layout/navigation.svelte +++ b/src/lib/layout/navigation.svelte @@ -163,7 +163,7 @@ {#if subNavigation} -
+
diff --git a/src/lib/layout/shell.svelte b/src/lib/layout/shell.svelte index 2e5e7819e..f4f5fd0cf 100644 --- a/src/lib/layout/shell.svelte +++ b/src/lib/layout/shell.svelte @@ -1,17 +1,17 @@ + +
+ + Password Dictionary + + + + +

+ Enabling this option prevent users from setting insecure passwords by comparing the + user's password with the 10k most commonly used passwords. +

+
+ + + + +
+
diff --git a/src/routes/console/project-[project]/auth/security/updatePasswordHistory.svelte b/src/routes/console/project-[project]/auth/security/updatePasswordHistory.svelte new file mode 100644 index 000000000..e4c48767d --- /dev/null +++ b/src/routes/console/project-[project]/auth/security/updatePasswordHistory.svelte @@ -0,0 +1,76 @@ + + +
+ + Password History + + + + +

+ Enabling this option prevents users from reusing recent passwords by comparing the + new password with their password history. +

+

+ Set the maximum number of passwords saved per user. Maximum 20 passwords. +

+ + + +
+ + + + +
+
diff --git a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/subNavigation.svelte b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/subNavigation.svelte index efb46a2e4..706d1177e 100644 --- a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/subNavigation.svelte +++ b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/subNavigation.svelte @@ -17,7 +17,7 @@
+ href={`${base}/console/project-${project}/databases/database-${databaseId}?openNavbar=true`}>