Skip to content
This repository was archived by the owner on Oct 17, 2023. It is now read-only.
This repository was archived by the owner on Oct 17, 2023. It is now read-only.

ユーザ関連機能の作成 #2

@kichi2004

Description

@kichi2004

User DB

  • id (int)
  • uid (string) unique
  • role (TEMPORARY | USER | ADMIN)
  • userName (string | null) unique
  • email (string)
  • atcoderId (string | null)

Google で登録/ログイン

POST /user/firebase

Google 認証・ユーザ照会

新規ユーザの場合

Role=TEMPORARY のアカウントを作成
新規登録フォーム Front /auth/register へリダイレクト
ユーザ名を設定して確定,RoleUser に変更する

既存ユーザの場合

ログインする

新規登録

POST /user/signup
メールアドレスを登録 → 新規登録リンクを送る? →登録フォームを表示

ログイン

POST /user/signin
メールアドレス・パスワードでログイン

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions