Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ログイン機能 #37

Open
touhouota opened this issue Dec 15, 2019 · 0 comments
Open

ログイン機能 #37

touhouota opened this issue Dec 15, 2019 · 0 comments

Comments

@touhouota
Copy link
Owner

touhouota commented Dec 15, 2019

セキュリティ云々は抜きにして、お手軽にDBにPW直接入れる形でつくる。

前提

  • 基本的な処理に関しては、ログインされていることを前提とする
    • ログインされていなければ、ログインフォームへredirect
    • ログイン成功時にsessionへ値を入れてあげる
    • sessionの値を見て、ログイン状態を確認する

大まかな流れ

  • 各ページへのアクセス
    • ログインされていない場合:ログインフォームへ
    • ログインしている場合:ページ表示
  • ログインフォーム
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant