-
Notifications
You must be signed in to change notification settings - Fork 1
Conversation
(Rebased to fix commits messages) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's some points on the frontend and TOS that I think a second look is needed
description: 'Ocorreu um erro ao fazer login. Cheque suas credenciais.' | ||
}); | ||
type: 'error', | ||
title: 'Erro na autenticação', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Verifique seu e-mail" may wrongly direct the user to check it's inbox . Just "Verifique suas credenciais" looks fine to me, since login user are also part of credentials, ana not only password
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently, the toast message is the same whether the credentials are incorrect or the user has not confirmed their email yet, thus the request.
web/src/pages/SignUp/index.tsx
Outdated
@@ -35,10 +35,12 @@ const SignUp: React.FC = () => { | |||
(password: string, field: any) => | |||
password | |||
? field | |||
.required('Senhas não batem') | |||
.oneOf([Yup.ref('password')], 'Senhas não batem') | |||
.required('Senhas não batem') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Senhas não são iguais"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💥🚗
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated to PR but will change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
accidentally started a review 😎
description: 'Ocorreu um erro ao fazer login. Cheque suas credenciais.' | ||
}); | ||
type: 'error', | ||
title: 'Erro na autenticação', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently, the toast message is the same whether the credentials are incorrect or the user has not confirmed their email yet, thus the request.
web/src/pages/SignUp/index.tsx
Outdated
@@ -35,10 +35,12 @@ const SignUp: React.FC = () => { | |||
(password: string, field: any) => | |||
password | |||
? field | |||
.required('Senhas não batem') | |||
.oneOf([Yup.ref('password')], 'Senhas não batem') | |||
.required('Senhas não batem') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated to PR but will change
Creates ToS.md file with ToS and Privacy Statement. Reads the markdown file with
markdown-to-jsx
(I've triedreact-markdown
but had trouble with types) and displays its content on the/privacidade
page, properly stylized.Somewhat out of scope for this issue-PR, I'll add a checkbox to the SignUp as well (edit: done).
Resolves #36.