Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

feat(web): add a change-password screen under account settings (#1719)

Justin Willhitee6f8bbfaa5f6
diff --git a/apps/web/src/components/account/change-password-settings.test.tsx b/apps/web/src/components/account/change-password-settings.test.tsx
new file mode 100644
index 000000000..e44a6c63b
--- /dev/null
+++ b/apps/web/src/components/account/change-password-settings.test.tsx
@@ -0,0 +1,175 @@
+import {
+ cleanup,
+ fireEvent,
+ render,
+ screen,
+ waitFor,
+} from "@testing-library/react";
+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
+import { ChangePasswordSettings } from "./change-password-settings";
+
+const changePassword = vi.fn();
+let accounts: Array<{ providerId: string }> | undefined = [];
+let isError = false;
+
+vi.mock("react-i18next", () => ({
+ useTranslation: () => ({ t: (key: string) => key }),
+}));
+
+vi.mock("@/hooks/queries/use-list-accounts", () => ({
+ default: () => ({ data: accounts, isLoading: false, isError }),
+}));
+
+vi.mock("@/hooks/mutations/use-change-password", () => ({
+ default: () => ({ mutateAsync: changePassword, isPending: false }),
+}));
+
+vi.mock("@/lib/toast", () => ({
+ toast: { success: vi.fn(), error: vi.fn() },
+}));
+
+function fillField(placeholderKey: string, value: string) {
+ fireEvent.change(screen.getByPlaceholderText(placeholderKey), {
+ target: { value },
+ });
+}
+
+function submit() {
+ fireEvent.click(
+ screen.getByRole("button", { name: "settings:securityPage.submit" }),
+ );
+}
+
+describe("ChangePasswordSettings", () => {
+ afterEach(cleanup);
+
+ beforeEach(() => {
+ changePassword.mockReset();
+ changePassword.mockResolvedValue(undefined);
+ accounts = [{ providerId: "credential" }];
+ isError = false;
+ });
+
+ it("hides the form for an account with no password credential", () => {
+ accounts = [{ providerId: "google" }];
+ render(<ChangePasswordSettings />);
+
+ expect(
+ screen.getByText("settings:securityPage.noPassword.title"),
+ ).toBeTruthy();
+ expect(
+ screen.queryByPlaceholderText(
+ "settings:securityPage.newPasswordPlaceholder",
+ ),
+ ).toBeNull();
+ });
+
+ it("shows an error instead of the form when accounts fail to load", () => {
+ accounts = undefined;
+ isError = true;
+ render(<ChangePasswordSettings />);
+
+ expect(screen.getByText("common:error.messages.unknown")).toBeTruthy();
+ expect(
+ screen.queryByPlaceholderText(
+ "settings:securityPage.newPasswordPlaceholder",
+ ),
+ ).toBeNull();
+ expect(
+ screen.queryByText("settings:securityPage.noPassword.title"),
+ ).toBeNull();
+ });
+
+ it("shows the change-password form for a credential account", () => {
+ render(<ChangePasswordSettings />);
+
+ expect(
+ screen.getByPlaceholderText(
+ "settings:securityPage.currentPasswordPlaceholder",
+ ),
+ ).toBeTruthy();
+ expect(
+ screen.getByPlaceholderText(
+ "settings:securityPage.newPasswordPlaceholder",
+ ),
+ ).toBeTruthy();
+ expect(
+ screen.getByPlaceholderText(
+ "settings:securityPage.confirmPasswordPlaceholder",
+ ),
+ ).toBeTruthy();
+ });
+
+ it("connects password inputs to labels and validation errors", async () => {
+ render(<ChangePasswordSettings />);
+
+ const currentPassword = screen.getByLabelText(
+ "settings:securityPage.currentPassword",
+ );
+ expect(
+ screen.getByLabelText("settings:securityPage.newPassword"),
+ ).toHaveAttribute("type", "password");
+ expect(
+ screen.getByLabelText("settings:securityPage.confirmPassword"),
+ ).toHaveAttribute("type", "password");
+
+ submit();
+
+ const error = await screen.findByText(
+ "settings:securityPage.validation.currentRequired",
+ );
+ expect(currentPassword).toHaveAttribute("aria-invalid", "true");
+ expect(
+ currentPassword.getAttribute("aria-describedby")?.split(" "),
+ ).toContain(error.id);
+ await waitFor(() => expect(currentPassword).toHaveFocus());
+ expect(changePassword).not.toHaveBeenCalled();
+ });
+
+ it("blocks the submit when the confirmation does not match", async () => {
+ render(<ChangePasswordSettings />);
+
+ fillField("settings:securityPage.currentPasswordPlaceholder", "oldpass12");
+ fillField("settings:securityPage.newPasswordPlaceholder", "newpass12");
+ fillField(
+ "settings:securityPage.confirmPasswordPlaceholder",
+ "different12",
+ );
+ submit();
+
+ expect(
+ await screen.findByText("settings:securityPage.validation.mismatch"),
+ ).toBeTruthy();
+ expect(changePassword).not.toHaveBeenCalled();
+ });
+
+ it("blocks the submit when the new password equals the current one", async () => {
+ render(<ChangePasswordSettings />);
+
+ fillField("settings:securityPage.currentPasswordPlaceholder", "samepass12");
+ fillField("settings:securityPage.newPasswordPlaceholder", "samepass12");
+ fillField("settings:securityPage.confirmPasswordPlaceholder", "samepass12");
+ submit();
+
+ expect(
+ await screen.findByText("settings:securityPage.validation.sameAsCurrent"),
+ ).toBeTruthy();
+ expect(changePassword).not.toHaveBeenCalled();
+ });
+
+ it("submits the current and new password when the form is valid", async () => {
+ render(<ChangePasswordSettings />);
+
+ fillField("settings:securityPage.currentPasswordPlaceholder", "oldpass12");
+ fillField("settings:securityPage.newPasswordPlaceholder", "newpass12");
+ fillField("settings:securityPage.confirmPasswordPlaceholder", "newpass12");
+ submit();
+
+ await waitFor(() =>
+ expect(changePassword).toHaveBeenCalledWith({
+ currentPassword: "oldpass12",
+ newPassword: "newpass12",
+ }),
+ );
+ });
+});
diff --git a/apps/web/src/components/account/change-password-settings.tsx b/apps/web/src/components/account/change-password-settings.tsx
new file mode 100644
index 000000000..ff618fab4
--- /dev/null
+++ b/apps/web/src/components/account/change-password-settings.tsx
@@ -0,0 +1,227 @@
+import { standardSchemaResolver } from "@hookform/resolvers/standard-schema";
+import { Eye, EyeOff, Loader2 } from "lucide-react";
+import { useState } from "react";
+import {
+ type ControllerRenderProps,
+ type FieldValues,
+ type Path,
+ useForm,
+} from "react-hook-form";
+import { useTranslation } from "react-i18next";
+import { z } from "zod";
+import { Button } from "@/components/ui/button";
+import {
+ Form,
+ FormControl,
+ FormField,
+ FormItem,
+ FormLabel,
+ FormMessage,
+} from "@/components/ui/form";
+import { Input, type InputProps } from "@/components/ui/input";
+import useChangePassword from "@/hooks/mutations/use-change-password";
+import useListAccounts from "@/hooks/queries/use-list-accounts";
+import { toast } from "@/lib/toast";
+
+type ChangePasswordFormValues = {
+ currentPassword: string;
+ newPassword: string;
+ confirmPassword: string;
+};
+
+// A local password input so the show/hide toggle isn't copy-pasted three times.
+function PasswordInput<T extends FieldValues>({
+ field,
+ ...inputProps
+}: {
+ field: ControllerRenderProps<T, Path<T>>;
+} & Omit<InputProps, "type">) {
+ const { t } = useTranslation();
+ const [show, setShow] = useState(false);
+
+ return (
+ <div className="relative">
+ <Input type={show ? "text" : "password"} {...inputProps} {...field} />
+ <button
+ type="button"
+ onClick={() => setShow((prev) => !prev)}
+ className="absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground"
+ aria-label={
+ show ? t("auth:forms.hidePassword") : t("auth:forms.showPassword")
+ }
+ aria-pressed={show}
+ >
+ {show ? <EyeOff size={16} /> : <Eye size={16} />}
+ </button>
+ </div>
+ );
+}
+
+export function ChangePasswordSettings() {
+ const { t } = useTranslation();
+ const { data: accounts, isLoading, isError } = useListAccounts();
+ const { mutateAsync: changePassword, isPending } = useChangePassword();
+
+ const hasPassword =
+ accounts?.some((account) => account.providerId === "credential") ?? false;
+
+ const changePasswordSchema = z
+ .object({
+ currentPassword: z
+ .string()
+ .min(1, t("settings:securityPage.validation.currentRequired")),
+ newPassword: z
+ .string()
+ .min(8, t("settings:securityPage.validation.tooShort")),
+ confirmPassword: z
+ .string()
+ .min(1, t("settings:securityPage.validation.confirmRequired")),
+ })
+ .refine((values) => values.newPassword !== values.currentPassword, {
+ message: t("settings:securityPage.validation.sameAsCurrent"),
+ path: ["newPassword"],
+ })
+ .refine((values) => values.newPassword === values.confirmPassword, {
+ message: t("settings:securityPage.validation.mismatch"),
+ path: ["confirmPassword"],
+ });
+
+ const form = useForm<ChangePasswordFormValues>({
+ resolver: standardSchemaResolver(changePasswordSchema),
+ mode: "onChange",
+ defaultValues: {
+ currentPassword: "",
+ newPassword: "",
+ confirmPassword: "",
+ },
+ });
+
+ const onSubmit = async (values: ChangePasswordFormValues) => {
+ try {
+ await changePassword({
+ currentPassword: values.currentPassword,
+ newPassword: values.newPassword,
+ });
+ form.reset();
+ toast.success(t("settings:securityPage.updateSuccess"));
+ } catch (error) {
+ toast.error(
+ error instanceof Error
+ ? error.message
+ : t("settings:securityPage.updateError"),
+ );
+ }
+ };
+
+ return (
+ <div className="space-y-6">
+ <div className="space-y-1">
+ <h2 className="text-md font-medium">
+ {t("settings:securityPage.sectionTitle")}
+ </h2>
+ <p className="text-xs text-muted-foreground">
+ {t("settings:securityPage.sectionSubtitle")}
+ </p>
+ </div>
+
+ <div className="space-y-4 border border-border rounded-md p-4 bg-sidebar">
+ {isLoading ? (
+ <div className="flex justify-center py-6">
+ <Loader2 className="size-4 animate-spin text-muted-foreground" />
+ </div>
+ ) : isError ? (
+ <p className="text-sm text-destructive">
+ {t("common:error.messages.unknown")}
+ </p>
+ ) : hasPassword ? (
+ <Form {...form}>
+ <form onSubmit={form.handleSubmit(onSubmit)} className="space-y-4">
+ <FormField
+ control={form.control}
+ name="currentPassword"
+ render={({ field }) => (
+ <FormItem>
+ <FormLabel className="text-sm font-medium">
+ {t("settings:securityPage.currentPassword")}
+ </FormLabel>
+ <FormControl>
+ <PasswordInput
+ field={field}
+ autoComplete="current-password"
+ placeholder={t(
+ "settings:securityPage.currentPasswordPlaceholder",
+ )}
+ />
+ </FormControl>
+ <FormMessage />
+ </FormItem>
+ )}
+ />
+
+ <FormField
+ control={form.control}
+ name="newPassword"
+ render={({ field }) => (
+ <FormItem>
+ <FormLabel className="text-sm font-medium">
+ {t("settings:securityPage.newPassword")}
+ </FormLabel>
+ <FormControl>
+ <PasswordInput
+ field={field}
+ autoComplete="new-password"
+ placeholder={t(
+ "settings:securityPage.newPasswordPlaceholder",
+ )}
+ />
+ </FormControl>
+ <FormMessage />
+ </FormItem>
+ )}
+ />
+
+ <FormField
+ control={form.control}
+ name="confirmPassword"
+ render={({ field }) => (
+ <FormItem>
+ <FormLabel className="text-sm font-medium">
+ {t("settings:securityPage.confirmPassword")}
+ </FormLabel>
+ <FormControl>
+ <PasswordInput
+ field={field}
+ autoComplete="new-password"
+ placeholder={t(
+ "settings:securityPage.confirmPasswordPlaceholder",
+ )}
+ />
+ </FormControl>
+ <FormMessage />
+ </FormItem>
+ )}
+ />
+
+ <div className="flex justify-end">
+ <Button type="submit" size="sm" disabled={isPending}>
+ {isPending
+ ? t("settings:securityPage.submitting")
+ : t("settings:securityPage.submit")}
+ </Button>
+ </div>
+ </form>
+ </Form>
+ ) : (
+ <div className="space-y-0.5">
+ <p className="text-sm font-medium">
+ {t("settings:securityPage.noPassword.title")}
+ </p>
+ <p className="text-xs text-muted-foreground">
+ {t("settings:securityPage.noPassword.description")}
+ </p>
+ </div>
+ )}
+ </div>
+ </div>
+ );
+}
diff --git a/apps/web/src/hooks/mutations/use-change-password.ts b/apps/web/src/hooks/mutations/use-change-password.ts
index c0c87ea21..a2d36a341 100644
--- a/apps/web/src/hooks/mutations/use-change-password.ts
+++ b/apps/web/src/hooks/mutations/use-change-password.ts
@@ -15,6 +15,9 @@ function useChangePassword() {
const { data, error } = await authClient.changePassword({
currentPassword,
newPassword,
+ // Sign out the account's other sessions on a password change; better-auth
+ // keeps the current session, so the user stays signed in on this device.
+ revokeOtherSessions: true,
});
if (error) {
diff --git a/apps/web/src/hooks/queries/use-list-accounts.ts b/apps/web/src/hooks/queries/use-list-accounts.ts
new file mode 100644
index 000000000..e4c84f5ba
--- /dev/null
+++ b/apps/web/src/hooks/queries/use-list-accounts.ts
@@ -0,0 +1,25 @@
+import { useQuery } from "@tanstack/react-query";
+import useAuth from "@/components/providers/auth-provider/hooks/use-auth";
+import { authClient } from "@/lib/auth-client";
+
+function useListAccounts() {
+ const { user } = useAuth();
+
+ return useQuery({
+ // Key by the current user so a replaced in-app session cannot reuse the
+ // previous user's account list (the global client disables refetchOnMount).
+ queryKey: ["accounts", user?.id],
+ queryFn: async () => {
+ const result = await authClient.listAccounts();
+
+ if (result.error) {
+ throw new Error(result.error.message);
+ }
+
+ return result.data ?? [];
+ },
+ enabled: !!user?.id,
+ });
+}
+
+export default useListAccounts;
diff --git a/apps/web/src/routeTree.gen.ts b/apps/web/src/routeTree.gen.ts
index 3c3f5a3f4..99e489847 100644
--- a/apps/web/src/routeTree.gen.ts
+++ b/apps/web/src/routeTree.gen.ts
@@ -43,6 +43,7 @@ import { Route as LayoutAuthenticatedDashboardSettingsAccountDeveloperRouteImpor
import { Route as LayoutAuthenticatedDashboardSettingsAccountInformationRouteImport } from './routes/_layout/_authenticated/dashboard/settings/account/information'
import { Route as LayoutAuthenticatedDashboardSettingsAccountNotificationsRouteImport } from './routes/_layout/_authenticated/dashboard/settings/account/notifications'
import { Route as LayoutAuthenticatedDashboardSettingsAccountPreferencesRouteImport } from './routes/_layout/_authenticated/dashboard/settings/account/preferences'
+import { Route as LayoutAuthenticatedDashboardSettingsAccountSecurityRouteImport } from './routes/_layout/_authenticated/dashboard/settings/account/security'
import { Route as LayoutAuthenticatedDashboardSettingsAdminUsersRouteImport } from './routes/_layout/_authenticated/dashboard/settings/admin/users'
import { Route as LayoutAuthenticatedDashboardSettingsWorkspaceBillingRouteImport } from './routes/_layout/_authenticated/dashboard/settings/workspace/billing'
import { Route as LayoutAuthenticatedDashboardSettingsWorkspaceGeneralRouteImport } from './routes/_layout/_authenticated/dashboard/settings/workspace/general'
@@ -248,6 +249,12 @@ const LayoutAuthenticatedDashboardSettingsAccountPreferencesRoute =
path: '/preferences',
getParentRoute: () => LayoutAuthenticatedDashboardSettingsAccountRoute,
} as any)
+const LayoutAuthenticatedDashboardSettingsAccountSecurityRoute =
+ LayoutAuthenticatedDashboardSettingsAccountSecurityRouteImport.update({
+ id: '/security',
+ path: '/security',
+ getParentRoute: () => LayoutAuthenticatedDashboardSettingsAccountRoute,
+ } as any)
const LayoutAuthenticatedDashboardSettingsAdminUsersRoute =
LayoutAuthenticatedDashboardSettingsAdminUsersRouteImport.update({
id: '/users',
@@ -416,6 +423,7 @@ export interface FileRoutesByFullPath {
'/dashboard/settings/account/information': typeof LayoutAuthenticatedDashboardSettingsAccountInformationRoute
'/dashboard/settings/account/notifications': typeof LayoutAuthenticatedDashboardSettingsAccountNotificationsRoute
'/dashboard/settings/account/preferences': typeof LayoutAuthenticatedDashboardSettingsAccountPreferencesRoute
+ '/dashboard/settings/account/security': typeof LayoutAuthenticatedDashboardSettingsAccountSecurityRoute
'/dashboard/settings/admin/users': typeof LayoutAuthenticatedDashboardSettingsAdminUsersRoute
'/dashboard/settings/workspace/billing': typeof LayoutAuthenticatedDashboardSettingsWorkspaceBillingRoute
'/dashboard/settings/workspace/general': typeof LayoutAuthenticatedDashboardSettingsWorkspaceGeneralRoute
@@ -465,6 +473,7 @@ export interface FileRoutesByTo {
'/dashboard/settings/account/information': typeof LayoutAuthenticatedDashboardSettingsAccountInformationRoute
'/dashboard/settings/account/notifications': typeof LayoutAuthenticatedDashboardSettingsAccountNotificationsRoute
'/dashboard/settings/account/preferences': typeof LayoutAuthenticatedDashboardSettingsAccountPreferencesRoute
+ '/dashboard/settings/account/security': typeof LayoutAuthenticatedDashboardSettingsAccountSecurityRoute
'/dashboard/settings/admin/users': typeof LayoutAuthenticatedDashboardSettingsAdminUsersRoute
'/dashboard/settings/workspace/billing': typeof LayoutAuthenticatedDashboardSettingsWorkspaceBillingRoute
'/dashboard/settings/workspace/general': typeof LayoutAuthenticatedDashboardSettingsWorkspaceGeneralRoute
@@ -520,6 +529,7 @@ export interface FileRoutesById {
'/_layout/_authenticated/dashboard/settings/account/information': typeof LayoutAuthenticatedDashboardSettingsAccountInformationRoute
'/_layout/_authenticated/dashboard/settings/account/notifications': typeof LayoutAuthenticatedDashboardSettingsAccountNotificationsRoute
'/_layout/_authenticated/dashboard/settings/account/preferences': typeof LayoutAuthenticatedDashboardSettingsAccountPreferencesRoute
+ '/_layout/_authenticated/dashboard/settings/account/security': typeof LayoutAuthenticatedDashboardSettingsAccountSecurityRoute
'/_layout/_authenticated/dashboard/settings/admin/users': typeof LayoutAuthenticatedDashboardSettingsAdminUsersRoute
'/_layout/_authenticated/dashboard/settings/workspace/billing': typeof LayoutAuthenticatedDashboardSettingsWorkspaceBillingRoute
'/_layout/_authenticated/dashboard/settings/workspace/general': typeof LayoutAuthenticatedDashboardSettingsWorkspaceGeneralRoute
@@ -574,6 +584,7 @@ export interface FileRouteTypes {
| '/dashboard/settings/account/information'
| '/dashboard/settings/account/notifications'
| '/dashboard/settings/account/preferences'
+ | '/dashboard/settings/account/security'
| '/dashboard/settings/admin/users'
| '/dashboard/settings/workspace/billing'
| '/dashboard/settings/workspace/general'
@@ -623,6 +634,7 @@ export interface FileRouteTypes {
| '/dashboard/settings/account/information'
| '/dashboard/settings/account/notifications'
| '/dashboard/settings/account/preferences'
+ | '/dashboard/settings/account/security'
| '/dashboard/settings/admin/users'
| '/dashboard/settings/workspace/billing'
| '/dashboard/settings/workspace/general'
@@ -677,6 +689,7 @@ export interface FileRouteTypes {
| '/_layout/_authenticated/dashboard/settings/account/information'
| '/_layout/_authenticated/dashboard/settings/account/notifications'
| '/_layout/_authenticated/dashboard/settings/account/preferences'
+ | '/_layout/_authenticated/dashboard/settings/account/security'
| '/_layout/_authenticated/dashboard/settings/admin/users'
| '/_layout/_authenticated/dashboard/settings/workspace/billing'
| '/_layout/_authenticated/dashboard/settings/workspace/general'
@@ -948,6 +961,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof LayoutAuthenticatedDashboardSettingsAccountPreferencesRouteImport
parentRoute: typeof LayoutAuthenticatedDashboardSettingsAccountRoute
}
+ '/_layout/_authenticated/dashboard/settings/account/security': {
+ id: '/_layout/_authenticated/dashboard/settings/account/security'
+ path: '/security'
+ fullPath: '/dashboard/settings/account/security'
+ preLoaderRoute: typeof LayoutAuthenticatedDashboardSettingsAccountSecurityRouteImport
+ parentRoute: typeof LayoutAuthenticatedDashboardSettingsAccountRoute
+ }
'/_layout/_authenticated/dashboard/settings/admin/users': {
id: '/_layout/_authenticated/dashboard/settings/admin/users'
path: '/users'
@@ -1082,6 +1102,7 @@ interface LayoutAuthenticatedDashboardSettingsAccountRouteChildren {
LayoutAuthenticatedDashboardSettingsAccountInformationRoute: typeof LayoutAuthenticatedDashboardSettingsAccountInformationRoute
LayoutAuthenticatedDashboardSettingsAccountNotificationsRoute: typeof LayoutAuthenticatedDashboardSettingsAccountNotificationsRoute
LayoutAuthenticatedDashboardSettingsAccountPreferencesRoute: typeof LayoutAuthenticatedDashboardSettingsAccountPreferencesRoute
+ LayoutAuthenticatedDashboardSettingsAccountSecurityRoute: typeof LayoutAuthenticatedDashboardSettingsAccountSecurityRoute
}
const LayoutAuthenticatedDashboardSettingsAccountRouteChildren: LayoutAuthenticatedDashboardSettingsAccountRouteChildren =
@@ -1094,6 +1115,8 @@ const LayoutAuthenticatedDashboardSettingsAccountRouteChildren: LayoutAuthentica
LayoutAuthenticatedDashboardSettingsAccountNotificationsRoute,
LayoutAuthenticatedDashboardSettingsAccountPreferencesRoute:
LayoutAuthenticatedDashboardSettingsAccountPreferencesRoute,
+ LayoutAuthenticatedDashboardSettingsAccountSecurityRoute:
+ LayoutAuthenticatedDashboardSettingsAccountSecurityRoute,
}
const LayoutAuthenticatedDashboardSettingsAccountRouteWithChildren =
diff --git a/apps/web/src/routes/_layout/_authenticated/dashboard/settings/account.tsx b/apps/web/src/routes/_layout/_authenticated/dashboard/settings/account.tsx
index 77babfa34..a736b7e22 100644
--- a/apps/web/src/routes/_layout/_authenticated/dashboard/settings/account.tsx
+++ b/apps/web/src/routes/_layout/_authenticated/dashboard/settings/account.tsx
@@ -4,7 +4,7 @@ import {
Outlet,
useLocation,
} from "@tanstack/react-router";
-import { Bell, Code, Settings, User } from "lucide-react";
+import { Bell, Code, KeyRound, Settings, User } from "lucide-react";
import { useTranslation } from "react-i18next";
import useAuth from "@/components/providers/auth-provider/hooks/use-auth";
import SettingsSidebar from "@/components/SettingsSidebar";
@@ -47,6 +47,11 @@ function RouteComponent() {
url: "/dashboard/settings/account/preferences",
icon: Settings,
},
+ {
+ title: t("settings:security"),
+ url: "/dashboard/settings/account/security",
+ icon: KeyRound,
+ },
];
return (
diff --git a/apps/web/src/routes/_layout/_authenticated/dashboard/settings/account/security.tsx b/apps/web/src/routes/_layout/_authenticated/dashboard/settings/account/security.tsx
new file mode 100644
index 000000000..6563d3e3e
--- /dev/null
+++ b/apps/web/src/routes/_layout/_authenticated/dashboard/settings/account/security.tsx
@@ -0,0 +1,32 @@
+import { createFileRoute } from "@tanstack/react-router";
+import { useTranslation } from "react-i18next";
+import { ChangePasswordSettings } from "@/components/account/change-password-settings";
+import PageTitle from "@/components/page-title";
+
+export const Route = createFileRoute(
+ "/_layout/_authenticated/dashboard/settings/account/security",
+)({
+ component: RouteComponent,
+});
+
+function RouteComponent() {
+ const { t } = useTranslation();
+
+ return (
+ <>
+ <PageTitle title={t("settings:securityPage.pageTitle")} />
+ <div className="max-w-4xl mx-auto space-y-8">
+ <div className="space-y-2">
+ <h1 className="text-2xl font-semibold">
+ {t("settings:securityPage.title")}
+ </h1>
+ <p className="text-muted-foreground">
+ {t("settings:securityPage.subtitle")}
+ </p>
+ </div>
+
+ <ChangePasswordSettings />
+ </div>
+ </>
+ );
+}
diff --git a/i18n/az-AZ.json b/i18n/az-AZ.json
index 304a5fbf8..e37f7a9ca 100644
--- a/i18n/az-AZ.json
+++ b/i18n/az-AZ.json
@@ -1532,6 +1532,35 @@
"userCount_one": "{{count}} registered user",
"userCount_other": "{{count}} registered users",
"you": "(you)"
+ },
+ "security": "Security",
+ "securityPage": {
+ "confirmPassword": "Confirm new password",
+ "confirmPasswordPlaceholder": "Re-enter your new password",
+ "currentPassword": "Current password",
+ "currentPasswordPlaceholder": "Enter your current password",
+ "newPassword": "New password",
+ "newPasswordPlaceholder": "Enter a new password",
+ "noPassword": {
+ "description": "Your account signs in with a different method, so there is no password to change.",
+ "title": "Password change isn't available"
+ },
+ "pageTitle": "Security",
+ "sectionSubtitle": "Change the password you use to sign in.",
+ "sectionTitle": "Password",
+ "submit": "Update password",
+ "submitting": "Updating...",
+ "subtitle": "Manage your password and account security.",
+ "title": "Security",
+ "updateError": "Failed to update password.",
+ "updateSuccess": "Password updated.",
+ "validation": {
+ "confirmRequired": "Confirm your new password.",
+ "currentRequired": "Enter your current password.",
+ "mismatch": "Passwords do not match.",
+ "tooShort": "New password must be at least 8 characters.",
+ "sameAsCurrent": "New password must be different from your current password."
+ }
}
},
"navigation": {
diff --git a/i18n/de-DE.json b/i18n/de-DE.json
index 2196ee4af..bbb7d96f3 100644
--- a/i18n/de-DE.json
+++ b/i18n/de-DE.json
@@ -1532,6 +1532,35 @@
"number": "Number",
"text": "Text"
}
+ },
+ "security": "Security",
+ "securityPage": {
+ "confirmPassword": "Confirm new password",
+ "confirmPasswordPlaceholder": "Re-enter your new password",
+ "currentPassword": "Current password",
+ "currentPasswordPlaceholder": "Enter your current password",
+ "newPassword": "New password",
+ "newPasswordPlaceholder": "Enter a new password",
+ "noPassword": {
+ "description": "Your account signs in with a different method, so there is no password to change.",
+ "title": "Password change isn't available"
+ },
+ "pageTitle": "Security",
+ "sectionSubtitle": "Change the password you use to sign in.",
+ "sectionTitle": "Password",
+ "submit": "Update password",
+ "submitting": "Updating...",
+ "subtitle": "Manage your password and account security.",
+ "title": "Security",
+ "updateError": "Failed to update password.",
+ "updateSuccess": "Password updated.",
+ "validation": {
+ "confirmRequired": "Confirm your new password.",
+ "currentRequired": "Enter your current password.",
+ "mismatch": "Passwords do not match.",
+ "tooShort": "New password must be at least 8 characters.",
+ "sameAsCurrent": "New password must be different from your current password."
+ }
}
},
"navigation": {
diff --git a/i18n/el-GR.json b/i18n/el-GR.json
index 01f47dbbb..2e34a47a9 100644
--- a/i18n/el-GR.json
+++ b/i18n/el-GR.json
@@ -1532,6 +1532,35 @@
"userCount_one": "{{count}} registered user",
"userCount_other": "{{count}} registered users",
"you": "(you)"
+ },
+ "security": "Security",
+ "securityPage": {
+ "confirmPassword": "Confirm new password",
+ "confirmPasswordPlaceholder": "Re-enter your new password",
+ "currentPassword": "Current password",
+ "currentPasswordPlaceholder": "Enter your current password",
+ "newPassword": "New password",
+ "newPasswordPlaceholder": "Enter a new password",
+ "noPassword": {
+ "description": "Your account signs in with a different method, so there is no password to change.",
+ "title": "Password change isn't available"
+ },
+ "pageTitle": "Security",
+ "sectionSubtitle": "Change the password you use to sign in.",
+ "sectionTitle": "Password",
+ "submit": "Update password",
+ "submitting": "Updating...",
+ "subtitle": "Manage your password and account security.",
+ "title": "Security",
+ "updateError": "Failed to update password.",
+ "updateSuccess": "Password updated.",
+ "validation": {
+ "confirmRequired": "Confirm your new password.",
+ "currentRequired": "Enter your current password.",
+ "mismatch": "Passwords do not match.",
+ "tooShort": "New password must be at least 8 characters.",
+ "sameAsCurrent": "New password must be different from your current password."
+ }
}
},
"navigation": {
diff --git a/i18n/en-US.json b/i18n/en-US.json
index 2f0bb000c..6a0b7ef13 100644
--- a/i18n/en-US.json
+++ b/i18n/en-US.json
@@ -1532,6 +1532,35 @@
"merged": "Merged",
"draft": "Draft",
"open": "Open"
+ },
+ "security": "Security",
+ "securityPage": {
+ "pageTitle": "Security",
+ "title": "Security",
+ "subtitle": "Manage your password and account security.",
+ "sectionTitle": "Password",
+ "sectionSubtitle": "Change the password you use to sign in.",
+ "currentPassword": "Current password",
+ "newPassword": "New password",
+ "confirmPassword": "Confirm new password",
+ "currentPasswordPlaceholder": "Enter your current password",
+ "newPasswordPlaceholder": "Enter a new password",
+ "confirmPasswordPlaceholder": "Re-enter your new password",
+ "submit": "Update password",
+ "submitting": "Updating...",
+ "updateSuccess": "Password updated.",
+ "updateError": "Failed to update password.",
+ "noPassword": {
+ "title": "Password change isn't available",
+ "description": "Your account signs in with a different method, so there is no password to change."
+ },
+ "validation": {
+ "currentRequired": "Enter your current password.",
+ "tooShort": "New password must be at least 8 characters.",
+ "confirmRequired": "Confirm your new password.",
+ "mismatch": "Passwords do not match.",
+ "sameAsCurrent": "New password must be different from your current password."
+ }
}
},
"navigation": {
diff --git a/i18n/es-ES.json b/i18n/es-ES.json
index 3f99d6dd2..ec5aa7e71 100644
--- a/i18n/es-ES.json
+++ b/i18n/es-ES.json
@@ -1535,6 +1535,35 @@
"userCount_one": "{{count}} registered user",
"userCount_other": "{{count}} registered users",
"you": "(you)"
+ },
+ "security": "Security",
+ "securityPage": {
+ "confirmPassword": "Confirm new password",
+ "confirmPasswordPlaceholder": "Re-enter your new password",
+ "currentPassword": "Current password",
+ "currentPasswordPlaceholder": "Enter your current password",
+ "newPassword": "New password",
+ "newPasswordPlaceholder": "Enter a new password",
+ "noPassword": {
+ "description": "Your account signs in with a different method, so there is no password to change.",
+ "title": "Password change isn't available"
+ },
+ "pageTitle": "Security",
+ "sectionSubtitle": "Change the password you use to sign in.",
+ "sectionTitle": "Password",
+ "submit": "Update password",
+ "submitting": "Updating...",
+ "subtitle": "Manage your password and account security.",
+ "title": "Security",
+ "updateError": "Failed to update password.",
+ "updateSuccess": "Password updated.",
+ "validation": {
+ "confirmRequired": "Confirm your new password.",
+ "currentRequired": "Enter your current password.",
+ "mismatch": "Passwords do not match.",
+ "tooShort": "New password must be at least 8 characters.",
+ "sameAsCurrent": "New password must be different from your current password."
+ }
}
},
"navigation": {
diff --git a/i18n/fr-FR.json b/i18n/fr-FR.json
index 309172cb8..1992ce449 100644
--- a/i18n/fr-FR.json
+++ b/i18n/fr-FR.json
@@ -1535,6 +1535,35 @@
"userCount_one": "{{count}} registered user",
"userCount_other": "{{count}} registered users",
"you": "(you)"
+ },
+ "security": "Security",
+ "securityPage": {
+ "confirmPassword": "Confirm new password",
+ "confirmPasswordPlaceholder": "Re-enter your new password",
+ "currentPassword": "Current password",
+ "currentPasswordPlaceholder": "Enter your current password",
+ "newPassword": "New password",
+ "newPasswordPlaceholder": "Enter a new password",
+ "noPassword": {
+ "description": "Your account signs in with a different method, so there is no password to change.",
+ "title": "Password change isn't available"
+ },
+ "pageTitle": "Security",
+ "sectionSubtitle": "Change the password you use to sign in.",
+ "sectionTitle": "Password",
+ "submit": "Update password",
+ "submitting": "Updating...",
+ "subtitle": "Manage your password and account security.",
+ "title": "Security",
+ "updateError": "Failed to update password.",
+ "updateSuccess": "Password updated.",
+ "validation": {
+ "confirmRequired": "Confirm your new password.",
+ "currentRequired": "Enter your current password.",
+ "mismatch": "Passwords do not match.",
+ "tooShort": "New password must be at least 8 characters.",
+ "sameAsCurrent": "New password must be different from your current password."
+ }
}
},
"navigation": {
diff --git a/i18n/hi-IN.json b/i18n/hi-IN.json
index dce88612a..4bf497777 100644
--- a/i18n/hi-IN.json
+++ b/i18n/hi-IN.json
@@ -1532,6 +1532,35 @@
"userCount_one": "{{count}} registered user",
"userCount_other": "{{count}} registered users",
"you": "(you)"
+ },
+ "security": "Security",
+ "securityPage": {
+ "confirmPassword": "Confirm new password",
+ "confirmPasswordPlaceholder": "Re-enter your new password",
+ "currentPassword": "Current password",
+ "currentPasswordPlaceholder": "Enter your current password",
+ "newPassword": "New password",
+ "newPasswordPlaceholder": "Enter a new password",
+ "noPassword": {
+ "description": "Your account signs in with a different method, so there is no password to change.",
+ "title": "Password change isn't available"
+ },
+ "pageTitle": "Security",
+ "sectionSubtitle": "Change the password you use to sign in.",
+ "sectionTitle": "Password",
+ "submit": "Update password",
+ "submitting": "Updating...",
+ "subtitle": "Manage your password and account security.",
+ "title": "Security",
+ "updateError": "Failed to update password.",
+ "updateSuccess": "Password updated.",
+ "validation": {
+ "confirmRequired": "Confirm your new password.",
+ "currentRequired": "Enter your current password.",
+ "mismatch": "Passwords do not match.",
+ "tooShort": "New password must be at least 8 characters.",
+ "sameAsCurrent": "New password must be different from your current password."
+ }
}
},
"navigation": {
diff --git a/i18n/id-ID.json b/i18n/id-ID.json
index e1d90a198..32f96c582 100644
--- a/i18n/id-ID.json
+++ b/i18n/id-ID.json
@@ -1529,6 +1529,35 @@
},
"userCount_other": "{{count}} registered users",
"you": "(you)"
+ },
+ "security": "Security",
+ "securityPage": {
+ "confirmPassword": "Confirm new password",
+ "confirmPasswordPlaceholder": "Re-enter your new password",
+ "currentPassword": "Current password",
+ "currentPasswordPlaceholder": "Enter your current password",
+ "newPassword": "New password",
+ "newPasswordPlaceholder": "Enter a new password",
+ "noPassword": {
+ "description": "Your account signs in with a different method, so there is no password to change.",
+ "title": "Password change isn't available"
+ },
+ "pageTitle": "Security",
+ "sectionSubtitle": "Change the password you use to sign in.",
+ "sectionTitle": "Password",
+ "submit": "Update password",
+ "submitting": "Updating...",
+ "subtitle": "Manage your password and account security.",
+ "title": "Security",
+ "updateError": "Failed to update password.",
+ "updateSuccess": "Password updated.",
+ "validation": {
+ "confirmRequired": "Confirm your new password.",
+ "currentRequired": "Enter your current password.",
+ "mismatch": "Passwords do not match.",
+ "tooShort": "New password must be at least 8 characters.",
+ "sameAsCurrent": "New password must be different from your current password."
+ }
}
},
"navigation": {
diff --git a/i18n/it-IT.json b/i18n/it-IT.json
index f9906886a..92fbc9641 100644
--- a/i18n/it-IT.json
+++ b/i18n/it-IT.json
@@ -1535,6 +1535,35 @@
"userCount_one": "{{count}} registered user",
"userCount_other": "{{count}} registered users",
"you": "(you)"
+ },
+ "security": "Security",
+ "securityPage": {
+ "confirmPassword": "Confirm new password",
+ "confirmPasswordPlaceholder": "Re-enter your new password",
+ "currentPassword": "Current password",
+ "currentPasswordPlaceholder": "Enter your current password",
+ "newPassword": "New password",
+ "newPasswordPlaceholder": "Enter a new password",
+ "noPassword": {
+ "description": "Your account signs in with a different method, so there is no password to change.",
+ "title": "Password change isn't available"
+ },
+ "pageTitle": "Security",
+ "sectionSubtitle": "Change the password you use to sign in.",
+ "sectionTitle": "Password",
+ "submit": "Update password",
+ "submitting": "Updating...",
+ "subtitle": "Manage your password and account security.",
+ "title": "Security",
+ "updateError": "Failed to update password.",
+ "updateSuccess": "Password updated.",
+ "validation": {
+ "confirmRequired": "Confirm your new password.",
+ "currentRequired": "Enter your current password.",
+ "mismatch": "Passwords do not match.",
+ "tooShort": "New password must be at least 8 characters.",
+ "sameAsCurrent": "New password must be different from your current password."
+ }
}
},
"navigation": {
diff --git a/i18n/ja-JP.json b/i18n/ja-JP.json
index e9bd3ff53..99ef81ed2 100644
--- a/i18n/ja-JP.json
+++ b/i18n/ja-JP.json
@@ -1529,6 +1529,35 @@
},
"userCount_other": "{{count}} registered users",
"you": "(you)"
+ },
+ "security": "Security",
+ "securityPage": {
+ "confirmPassword": "Confirm new password",
+ "confirmPasswordPlaceholder": "Re-enter your new password",
+ "currentPassword": "Current password",
+ "currentPasswordPlaceholder": "Enter your current password",
+ "newPassword": "New password",
+ "newPasswordPlaceholder": "Enter a new password",
+ "noPassword": {
+ "description": "Your account signs in with a different method, so there is no password to change.",
+ "title": "Password change isn't available"
+ },
+ "pageTitle": "Security",
+ "sectionSubtitle": "Change the password you use to sign in.",
+ "sectionTitle": "Password",
+ "submit": "Update password",
+ "submitting": "Updating...",
+ "subtitle": "Manage your password and account security.",
+ "title": "Security",
+ "updateError": "Failed to update password.",
+ "updateSuccess": "Password updated.",
+ "validation": {
+ "confirmRequired": "Confirm your new password.",
+ "currentRequired": "Enter your current password.",
+ "mismatch": "Passwords do not match.",
+ "tooShort": "New password must be at least 8 characters.",
+ "sameAsCurrent": "New password must be different from your current password."
+ }
}
},
"navigation": {
diff --git a/i18n/ko-KR.json b/i18n/ko-KR.json
index 50b0bf77a..be6c67453 100644
--- a/i18n/ko-KR.json
+++ b/i18n/ko-KR.json
@@ -1529,6 +1529,35 @@
},
"userCount_other": "{{count}} registered users",
"you": "(you)"
+ },
+ "security": "Security",
+ "securityPage": {
+ "confirmPassword": "Confirm new password",
+ "confirmPasswordPlaceholder": "Re-enter your new password",
+ "currentPassword": "Current password",
+ "currentPasswordPlaceholder": "Enter your current password",
+ "newPassword": "New password",
+ "newPasswordPlaceholder": "Enter a new password",
+ "noPassword": {
+ "description": "Your account signs in with a different method, so there is no password to change.",
+ "title": "Password change isn't available"
+ },
+ "pageTitle": "Security",
+ "sectionSubtitle": "Change the password you use to sign in.",
+ "sectionTitle": "Password",
+ "submit": "Update password",
+ "submitting": "Updating...",
+ "subtitle": "Manage your password and account security.",
+ "title": "Security",
+ "updateError": "Failed to update password.",
+ "updateSuccess": "Password updated.",
+ "validation": {
+ "confirmRequired": "Confirm your new password.",
+ "currentRequired": "Enter your current password.",
+ "mismatch": "Passwords do not match.",
+ "tooShort": "New password must be at least 8 characters.",
+ "sameAsCurrent": "New password must be different from your current password."
+ }
}
},
"navigation": {
diff --git a/i18n/mk-MK.json b/i18n/mk-MK.json
index dff71e2d0..b658226e9 100644
--- a/i18n/mk-MK.json
+++ b/i18n/mk-MK.json
@@ -1532,6 +1532,35 @@
"userCount_one": "{{count}} registered user",
"userCount_other": "{{count}} registered users",
"you": "(you)"
+ },
+ "security": "Security",
+ "securityPage": {
+ "confirmPassword": "Confirm new password",
+ "confirmPasswordPlaceholder": "Re-enter your new password",
+ "currentPassword": "Current password",
+ "currentPasswordPlaceholder": "Enter your current password",
+ "newPassword": "New password",
+ "newPasswordPlaceholder": "Enter a new password",
+ "noPassword": {
+ "description": "Your account signs in with a different method, so there is no password to change.",
+ "title": "Password change isn't available"
+ },
+ "pageTitle": "Security",
+ "sectionSubtitle": "Change the password you use to sign in.",
+ "sectionTitle": "Password",
+ "submit": "Update password",
+ "submitting": "Updating...",
+ "subtitle": "Manage your password and account security.",
+ "title": "Security",
+ "updateError": "Failed to update password.",
+ "updateSuccess": "Password updated.",
+ "validation": {
+ "confirmRequired": "Confirm your new password.",
+ "currentRequired": "Enter your current password.",
+ "mismatch": "Passwords do not match.",
+ "tooShort": "New password must be at least 8 characters.",
+ "sameAsCurrent": "New password must be different from your current password."
+ }
}
},
"navigation": {
diff --git a/i18n/nl-NL.json b/i18n/nl-NL.json
index bb42f6de2..33bb393f0 100644
--- a/i18n/nl-NL.json
+++ b/i18n/nl-NL.json
@@ -1532,6 +1532,35 @@
"userCount_one": "{{count}} registered user",
"userCount_other": "{{count}} registered users",
"you": "(you)"
+ },
+ "security": "Security",
+ "securityPage": {
+ "confirmPassword": "Confirm new password",
+ "confirmPasswordPlaceholder": "Re-enter your new password",
+ "currentPassword": "Current password",
+ "currentPasswordPlaceholder": "Enter your current password",
+ "newPassword": "New password",
+ "newPasswordPlaceholder": "Enter a new password",
+ "noPassword": {
+ "description": "Your account signs in with a different method, so there is no password to change.",
+ "title": "Password change isn't available"
+ },
+ "pageTitle": "Security",
+ "sectionSubtitle": "Change the password you use to sign in.",
+ "sectionTitle": "Password",
+ "submit": "Update password",
+ "submitting": "Updating...",
+ "subtitle": "Manage your password and account security.",
+ "title": "Security",
+ "updateError": "Failed to update password.",
+ "updateSuccess": "Password updated.",
+ "validation": {
+ "confirmRequired": "Confirm your new password.",
+ "currentRequired": "Enter your current password.",
+ "mismatch": "Passwords do not match.",
+ "tooShort": "New password must be at least 8 characters.",
+ "sameAsCurrent": "New password must be different from your current password."
+ }
}
},
"navigation": {
diff --git a/i18n/pl-PL.json b/i18n/pl-PL.json
index 27befcc80..45628baa8 100644
--- a/i18n/pl-PL.json
+++ b/i18n/pl-PL.json
@@ -2016,6 +2016,35 @@
"userCount_one": "{{count}} registered user",
"userCount_other": "{{count}} registered users",
"you": "(you)"
+ },
+ "security": "Security",
+ "securityPage": {
+ "confirmPassword": "Confirm new password",
+ "confirmPasswordPlaceholder": "Re-enter your new password",
+ "currentPassword": "Current password",
+ "currentPasswordPlaceholder": "Enter your current password",
+ "newPassword": "New password",
+ "newPasswordPlaceholder": "Enter a new password",
+ "noPassword": {
+ "description": "Your account signs in with a different method, so there is no password to change.",
+ "title": "Password change isn't available"
+ },
+ "pageTitle": "Security",
+ "sectionSubtitle": "Change the password you use to sign in.",
+ "sectionTitle": "Password",
+ "submit": "Update password",
+ "submitting": "Updating...",
+ "subtitle": "Manage your password and account security.",
+ "title": "Security",
+ "updateError": "Failed to update password.",
+ "updateSuccess": "Password updated.",
+ "validation": {
+ "confirmRequired": "Confirm your new password.",
+ "currentRequired": "Enter your current password.",
+ "mismatch": "Passwords do not match.",
+ "tooShort": "New password must be at least 8 characters.",
+ "sameAsCurrent": "New password must be different from your current password."
+ }
}
},
"tasks": {
diff --git a/i18n/pt-BR.json b/i18n/pt-BR.json
index 5aa05c1e3..bb4ff0909 100644
--- a/i18n/pt-BR.json
+++ b/i18n/pt-BR.json
@@ -1535,6 +1535,35 @@
"userCount_one": "{{count}} registered user",
"userCount_other": "{{count}} registered users",
"you": "(you)"
+ },
+ "security": "Security",
+ "securityPage": {
+ "confirmPassword": "Confirm new password",
+ "confirmPasswordPlaceholder": "Re-enter your new password",
+ "currentPassword": "Current password",
+ "currentPasswordPlaceholder": "Enter your current password",
+ "newPassword": "New password",
+ "newPasswordPlaceholder": "Enter a new password",
+ "noPassword": {
+ "description": "Your account signs in with a different method, so there is no password to change.",
+ "title": "Password change isn't available"
+ },
+ "pageTitle": "Security",
+ "sectionSubtitle": "Change the password you use to sign in.",
+ "sectionTitle": "Password",
+ "submit": "Update password",
+ "submitting": "Updating...",
+ "subtitle": "Manage your password and account security.",
+ "title": "Security",
+ "updateError": "Failed to update password.",
+ "updateSuccess": "Password updated.",
+ "validation": {
+ "confirmRequired": "Confirm your new password.",
+ "currentRequired": "Enter your current password.",
+ "mismatch": "Passwords do not match.",
+ "tooShort": "New password must be at least 8 characters.",
+ "sameAsCurrent": "New password must be different from your current password."
+ }
}
},
"navigation": {
diff --git a/i18n/ru-RU.json b/i18n/ru-RU.json
index a8f2024d0..466d5372f 100644
--- a/i18n/ru-RU.json
+++ b/i18n/ru-RU.json
@@ -1546,6 +1546,35 @@
"userCount_one": "{{count}} registered user",
"userCount_other": "{{count}} registered users",
"you": "(you)"
+ },
+ "security": "Security",
+ "securityPage": {
+ "confirmPassword": "Confirm new password",
+ "confirmPasswordPlaceholder": "Re-enter your new password",
+ "currentPassword": "Current password",
+ "currentPasswordPlaceholder": "Enter your current password",
+ "newPassword": "New password",
+ "newPasswordPlaceholder": "Enter a new password",
+ "noPassword": {
+ "description": "Your account signs in with a different method, so there is no password to change.",
+ "title": "Password change isn't available"
+ },
+ "pageTitle": "Security",
+ "sectionSubtitle": "Change the password you use to sign in.",
+ "sectionTitle": "Password",
+ "submit": "Update password",
+ "submitting": "Updating...",
+ "subtitle": "Manage your password and account security.",
+ "title": "Security",
+ "updateError": "Failed to update password.",
+ "updateSuccess": "Password updated.",
+ "validation": {
+ "confirmRequired": "Confirm your new password.",
+ "currentRequired": "Enter your current password.",
+ "mismatch": "Passwords do not match.",
+ "tooShort": "New password must be at least 8 characters.",
+ "sameAsCurrent": "New password must be different from your current password."
+ }
}
},
"navigation": {
diff --git a/i18n/schema.json b/i18n/schema.json
index bbf8f52d8..bed2e7468 100644
--- a/i18n/schema.json
+++ b/i18n/schema.json
@@ -6110,6 +6110,120 @@
"draft",
"open"
]
+ },
+ "security": {
+ "type": "string"
+ },
+ "securityPage": {
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "pageTitle": {
+ "type": "string"
+ },
+ "title": {
+ "type": "string"
+ },
+ "subtitle": {
+ "type": "string"
+ },
+ "sectionTitle": {
+ "type": "string"
+ },
+ "sectionSubtitle": {
+ "type": "string"
+ },
+ "currentPassword": {
+ "type": "string"
+ },
+ "newPassword": {
+ "type": "string"
+ },
+ "confirmPassword": {
+ "type": "string"
+ },
+ "currentPasswordPlaceholder": {
+ "type": "string"
+ },
+ "newPasswordPlaceholder": {
+ "type": "string"
+ },
+ "confirmPasswordPlaceholder": {
+ "type": "string"
+ },
+ "submit": {
+ "type": "string"
+ },
+ "submitting": {
+ "type": "string"
+ },
+ "updateSuccess": {
+ "type": "string"
+ },
+ "updateError": {
+ "type": "string"
+ },
+ "noPassword": {
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "title": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ }
+ },
+ "required": ["title", "description"]
+ },
+ "validation": {
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "currentRequired": {
+ "type": "string"
+ },
+ "tooShort": {
+ "type": "string"
+ },
+ "confirmRequired": {
+ "type": "string"
+ },
+ "mismatch": {
+ "type": "string"
+ },
+ "sameAsCurrent": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "currentRequired",
+ "tooShort",
+ "confirmRequired",
+ "mismatch",
+ "sameAsCurrent"
+ ]
+ }
+ },
+ "required": [
+ "pageTitle",
+ "title",
+ "subtitle",
+ "sectionTitle",
+ "sectionSubtitle",
+ "currentPassword",
+ "newPassword",
+ "confirmPassword",
+ "currentPasswordPlaceholder",
+ "newPasswordPlaceholder",
+ "confirmPasswordPlaceholder",
+ "submit",
+ "submitting",
+ "updateSuccess",
+ "updateError",
+ "noPassword",
+ "validation"
+ ]
}
},
"required": [
@@ -6146,7 +6260,9 @@
"repositoryBrowser",
"tasksImportExport",
"workflowEditor",
- "externalLinks"
+ "externalLinks",
+ "security",
+ "securityPage"
]
},
"navigation": {
diff --git a/i18n/tr-TR.json b/i18n/tr-TR.json
index 287ef9b6e..1a76a93c0 100644
--- a/i18n/tr-TR.json
+++ b/i18n/tr-TR.json
@@ -1532,6 +1532,35 @@
"userCount_one": "{{count}} registered user",
"userCount_other": "{{count}} registered users",
"you": "(you)"
+ },
+ "security": "Security",
+ "securityPage": {
+ "confirmPassword": "Confirm new password",
+ "confirmPasswordPlaceholder": "Re-enter your new password",
+ "currentPassword": "Current password",
+ "currentPasswordPlaceholder": "Enter your current password",
+ "newPassword": "New password",
+ "newPasswordPlaceholder": "Enter a new password",
+ "noPassword": {
+ "description": "Your account signs in with a different method, so there is no password to change.",
+ "title": "Password change isn't available"
+ },
+ "pageTitle": "Security",
+ "sectionSubtitle": "Change the password you use to sign in.",
+ "sectionTitle": "Password",
+ "submit": "Update password",
+ "submitting": "Updating...",
+ "subtitle": "Manage your password and account security.",
+ "title": "Security",
+ "updateError": "Failed to update password.",
+ "updateSuccess": "Password updated.",
+ "validation": {
+ "confirmRequired": "Confirm your new password.",
+ "currentRequired": "Enter your current password.",
+ "mismatch": "Passwords do not match.",
+ "tooShort": "New password must be at least 8 characters.",
+ "sameAsCurrent": "New password must be different from your current password."
+ }
}
},
"navigation": {
diff --git a/i18n/uk-UA.json b/i18n/uk-UA.json
index 02ba52f69..63dba165b 100644
--- a/i18n/uk-UA.json
+++ b/i18n/uk-UA.json
@@ -1538,6 +1538,35 @@
"userCount_one": "{{count}} registered user",
"userCount_other": "{{count}} registered users",
"you": "(you)"
+ },
+ "security": "Security",
+ "securityPage": {
+ "confirmPassword": "Confirm new password",
+ "confirmPasswordPlaceholder": "Re-enter your new password",
+ "currentPassword": "Current password",
+ "currentPasswordPlaceholder": "Enter your current password",
+ "newPassword": "New password",
+ "newPasswordPlaceholder": "Enter a new password",
+ "noPassword": {
+ "description": "Your account signs in with a different method, so there is no password to change.",
+ "title": "Password change isn't available"
+ },
+ "pageTitle": "Security",
+ "sectionSubtitle": "Change the password you use to sign in.",
+ "sectionTitle": "Password",
+ "submit": "Update password",
+ "submitting": "Updating...",
+ "subtitle": "Manage your password and account security.",
+ "title": "Security",
+ "updateError": "Failed to update password.",
+ "updateSuccess": "Password updated.",
+ "validation": {
+ "confirmRequired": "Confirm your new password.",
+ "currentRequired": "Enter your current password.",
+ "mismatch": "Passwords do not match.",
+ "tooShort": "New password must be at least 8 characters.",
+ "sameAsCurrent": "New password must be different from your current password."
+ }
}
},
"navigation": {
diff --git a/i18n/vi-VN.json b/i18n/vi-VN.json
index a8969e1da..f80e79dc7 100644
--- a/i18n/vi-VN.json
+++ b/i18n/vi-VN.json
@@ -1529,6 +1529,35 @@
},
"userCount_other": "{{count}} registered users",
"you": "(you)"
+ },
+ "security": "Security",
+ "securityPage": {
+ "confirmPassword": "Confirm new password",
+ "confirmPasswordPlaceholder": "Re-enter your new password",
+ "currentPassword": "Current password",
+ "currentPasswordPlaceholder": "Enter your current password",
+ "newPassword": "New password",
+ "newPasswordPlaceholder": "Enter a new password",
+ "noPassword": {
+ "description": "Your account signs in with a different method, so there is no password to change.",
+ "title": "Password change isn't available"
+ },
+ "pageTitle": "Security",
+ "sectionSubtitle": "Change the password you use to sign in.",
+ "sectionTitle": "Password",
+ "submit": "Update password",
+ "submitting": "Updating...",
+ "subtitle": "Manage your password and account security.",
+ "title": "Security",
+ "updateError": "Failed to update password.",
+ "updateSuccess": "Password updated.",
+ "validation": {
+ "confirmRequired": "Confirm your new password.",
+ "currentRequired": "Enter your current password.",
+ "mismatch": "Passwords do not match.",
+ "tooShort": "New password must be at least 8 characters.",
+ "sameAsCurrent": "New password must be different from your current password."
+ }
}
},
"navigation": {
diff --git a/i18n/zh-CN.json b/i18n/zh-CN.json
index d34c9e652..d3a36a4fd 100644
--- a/i18n/zh-CN.json
+++ b/i18n/zh-CN.json
@@ -1529,6 +1529,35 @@
},
"userCount_other": "{{count}} registered users",
"you": "(you)"
+ },
+ "security": "Security",
+ "securityPage": {
+ "confirmPassword": "Confirm new password",
+ "confirmPasswordPlaceholder": "Re-enter your new password",
+ "currentPassword": "Current password",
+ "currentPasswordPlaceholder": "Enter your current password",
+ "newPassword": "New password",
+ "newPasswordPlaceholder": "Enter a new password",
+ "noPassword": {
+ "description": "Your account signs in with a different method, so there is no password to change.",
+ "title": "Password change isn't available"
+ },
+ "pageTitle": "Security",
+ "sectionSubtitle": "Change the password you use to sign in.",
+ "sectionTitle": "Password",
+ "submit": "Update password",
+ "submitting": "Updating...",
+ "subtitle": "Manage your password and account security.",
+ "title": "Security",
+ "updateError": "Failed to update password.",
+ "updateSuccess": "Password updated.",
+ "validation": {
+ "confirmRequired": "Confirm your new password.",
+ "currentRequired": "Enter your current password.",
+ "mismatch": "Passwords do not match.",
+ "tooShort": "New password must be at least 8 characters.",
+ "sameAsCurrent": "New password must be different from your current password."
+ }
}
},
"navigation": {