Sign-in: email and password option

Aberta
#111 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
5/5
Tempo estimado
Mais de uma semana
Facilidade para iniciantes
15/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
typescript

Direção de pesquisa

Start with CONTRIBUTING.md, then read lib/auth/providers.ts to see how the existing Google provider is wired into the log-in page. The work spans sign-up, email verification, password reset, rate limiting and docs under content/docs/, so it needs design agreement before code. Done means the acceptance criteria pass, including tests for sign-up, log-in, reset and the rate limit, with pnpm test and pnpm build succeeding.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

backend enhancement frontend

Copied from DeadantCo/answerLoops#101 · originally opened by sethr07 on 2026-11-20

Copied from https://github.com/answerLoops/answerLoops/issues/457 — originally opened by @NathanTarbert on 2026-10-23

Problem

Some people cannot or would rather not sign in through a third-party account. Right now the only sign-in method is Google, and the app has no password storage at all.

Scope

  • Add an email and password option to the provider list in lib/auth/providers.ts and the log-in page.
  • Store passwords only as strong salted hashes, with a sign-up flow, a password-reset flow by email, rate limiting on attempts, and a minimum-strength check.
  • Require email verification before the account can be used.
  • Reuse the existing account provisioning so new users get an organization the same way as other methods.
  • Carry plan, billing period, promo code and redirect through as the other methods do.
  • Update the data-model and self-hosting docs under content/docs/ for the new table or columns and any new variables.
  • Email magic link sign-in is tracked separately in #30 and is out of scope here.

Acceptance criteria

  • A person can sign up, verify their email, log in, and reset a forgotten password.
  • Repeated failed attempts are rate limited.
  • The option appears only when email sending is configured on the deployment.
  • Tests cover sign-up, log-in, reset and the rate limit.
  • pnpm test and pnpm build pass.

Related: #370, #371

Start here: new to the project? Read CONTRIBUTING.md first. It covers the ground rules, running answerLoops locally, and how to open a pull request.

Linguagem predominante
TypeScript
Estrelas
0
Forks
0
Métricas de merge de PRs
Nenhum PR com merge em 30d

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de DeadantCo/answerLoopsdev

Todas as issues de DeadantCo/answerLoopsdev

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.