Sign-in: email and password option

未关闭
#111 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
15/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
typescript

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
TypeScript
星标
0
派生
0
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

DeadantCo/answerLoopsdev 的其他 Issue

查看 DeadantCo/answerLoopsdev 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。