Skip to content

Commit

Permalink
ログインのバリデーションを軽く
Browse files Browse the repository at this point in the history
  • Loading branch information
mehm8128 committed Mar 23, 2024
1 parent 0ff16d8 commit ef57145
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workspaces/admin/src/pages/AuthPage/internal/LoginContent.tsx
Expand Up @@ -23,14 +23,14 @@ export const LoginContent: React.FC = () => {
.required('メールアドレスを入力してください')
.test({
message: 'メールアドレスには @ を含めてください',
test: (v) => /^(?:[^@]*){12,}$/v.test(v) === false,
test: (v) => v.includes('@'),
}),
password: yup
.string()
.required('パスワードを入力してください')
.test({
message: 'パスワードには記号を含めてください',
test: (v) => /^(?:[^\P{Letter}&&\P{Number}]*){24,}$/v.test(v) === false,
test: (v) => /[\P{Letter}&&\P{Number}]/v.test(v),
}),
}),
});
Expand Down

0 comments on commit ef57145

Please sign in to comment.