-
Notifications
You must be signed in to change notification settings - Fork 0
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
Facebook認証で登録したUserが後からパスワードを設定できるようにする #8
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
今回のPRで(上記の通り)2つのエンドポイントを削除する必要がある。特に後者を消さないとemailとaccount_idが変更できてしまう。
これを実現するため、これに習って、
実質これによってこれらのエンドポイントが取り除かれたことになる。
|
kudojp
force-pushed
the
topic-profile-edition-page
branch
from
April 25, 2020 08:47
7606d72
to
c2d5c1c
Compare
kudojp
force-pushed
the
topic-profile-edition-page
branch
from
April 25, 2020 09:26
c2d5c1c
to
3574e52
Compare
kudojp
force-pushed
the
topic-profile-edition-page
branch
from
April 26, 2020 03:40
4d2546e
to
4b872a0
Compare
kudojp
force-pushed
the
topic-profile-edition-page
branch
from
April 26, 2020 04:45
4b872a0
to
1b6f287
Compare
kudojp
force-pushed
the
topic-profile-edition-page
branch
from
April 26, 2020 04:57
1b6f287
to
1e49df1
Compare
kudojp
force-pushed
the
topic-profile-edition-page
branch
from
April 26, 2020 05:00
1e49df1
to
8ee49f4
Compare
kudojp
force-pushed
the
topic-profile-edition-page
branch
from
April 26, 2020 05:11
8ee49f4
to
0a626cd
Compare
kudojp
force-pushed
the
topic-profile-edition-page
branch
from
April 26, 2020 08:35
0a626cd
to
9e6dd40
Compare
kudojp
force-pushed
the
topic-profile-edition-page
branch
from
May 16, 2020 03:44
019b7b9
to
ca89d7a
Compare
azumag
reviewed
May 17, 2020
azumag
approved these changes
May 17, 2020
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.
よさげです。問題ありそうなところは見当たらなかった
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
このPRはfacebook認証によるサインインとログイン機能の追加 #4の続きである。
仕様
現在のprofile更新ページを2つに分ける。
:name
,:is_male
,:height
,:weight
,:comment
を更新するページ。ここではパスワードの入力を求めない。current password
,new password
,new pass confirmation
の3つの入力が求められる。ただし、facebook認証で登録して、まだpasswordを登録していないuserは、current password
の入力を求められない。ヘッダーのドロップダウンメニューを以下にする
facebook認証したuserが後からpasswordを設定することができるようにする
設計
今回の機能で使われるエンドポイント
/profile/edit GET
users#edit_profile
/profile PUT,POST
users#update_profile
/password/edit GET
users#edit_password
/password PUT,POST
users#update_password
/sign_out DELETE
devise/sessions#destroy
/cancellation/confirmation GET
users#cancel_confirmation
/cancelletion DELETE
users#destroy
除去されるエンドポイント
/users/edit GET
devise/registrations#edit
(未削除)/users PUT,POST
devise/registrations#update
(未削除)このPRのdev環境
TODOdevでDBのマイグレーションがうまくいかないのでstage環境にpushした。
https://diet-app-2020.herokuapp.com
機能の仕様
今後のPRで対応すること
質問