From 63122cb0a70c108049544ab4f4c69c2247cbebe2 Mon Sep 17 00:00:00 2001 From: RamiBerm <54766858+RamiBerm@users.noreply.github.com> Date: Thu, 6 Jan 2022 12:15:46 +0200 Subject: [PATCH] TRA-4147 simpler kratos password policy (#590) --- agent/kratos/Dockerfile | 2 +- ui/src/components/InstallPage.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/agent/kratos/Dockerfile b/agent/kratos/Dockerfile index 086a1a992..31dbf628d 100644 --- a/agent/kratos/Dockerfile +++ b/agent/kratos/Dockerfile @@ -1,4 +1,4 @@ -FROM oryd/kratos:v0.8.0-sqlite +FROM gcr.io/up9-docker-hub/mizu-kratos-base/simple-password-policy:latest USER root diff --git a/ui/src/components/InstallPage.tsx b/ui/src/components/InstallPage.tsx index a950d0f27..1606d319f 100644 --- a/ui/src/components/InstallPage.tsx +++ b/ui/src/components/InstallPage.tsx @@ -17,8 +17,8 @@ export const InstallPage: React.FC = () => { const {setPage} = useContext(MizuContext); const onFormSubmit = async () => { - if (password.length < 8) { - toast.error("Password must be at least 8 characters long"); + if (password.length < 4) { + toast.error("Password must be at least 4 characters long"); return; } else if (password !== passwordConfirm) { toast.error("Passwords do not match");