Skip to content

Do not show DAP on "enter email" page#1288

Merged
jessieay merged 3 commits intomasterfrom
jy-DAP-AGAIN
Mar 29, 2017
Merged

Do not show DAP on "enter email" page#1288
jessieay merged 3 commits intomasterfrom
jy-DAP-AGAIN

Conversation

@jessieay
Copy link
Copy Markdown
Contributor

Why: Before, we were excluding from POST controller action, which
actually does not render a view. Instead, it redirects to various views
depending on whether the confirmation token is valid or not. If it is
invalid, we don't care about whether we show DAP or not because the
session does not have trusted info. If the user is already confirmed,
they will be logged in so DAP will not be included. So what we really
care about is just the case when a user has a valid confirmation token.
In that case, the user is redirected to sign_up_enter_password_url
(see process_valid_confirmation_token method). Now, we are excluding
DAP from that page.

QA'd locally to make sure.

**Why**: Before, we were excluding from POST controller action, which
actually does not render a view. Instead, it redirects to various views
depending on whether the confirmation token is valid or not. If it is
invalid, we don't care about whether we show DAP or not because the
session does not have trusted info. If the user is already confirmed,
they will be logged in so DAP will not be included. So what we really
care about is just the case when a user has a valid confirmation token.
In that case, the user is redirected to `sign_up_enter_password_url`
(see `process_valid_confirmation_token` method). Now, we are excluding
DAP from that page.

QA'd locally to make sure.
Copy link
Copy Markdown
Contributor

@pkarman pkarman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code looks fine, though it would be nice if there was a way to feature-test the DAP code.

**Why**: To confirm that we are excluding from the pages that we think
we are excluding from
@jessieay
Copy link
Copy Markdown
Contributor Author

@pkarman updated at 93d51f8 PTAL!

@pkarman
Copy link
Copy Markdown
Contributor

pkarman commented Mar 29, 2017

😻

@jessieay jessieay merged commit b84105f into master Mar 29, 2017
@jessieay jessieay deleted the jy-DAP-AGAIN branch March 29, 2017 21:51
pkarman pushed a commit that referenced this pull request Mar 30, 2017
**Why**: Before, we were excluding from POST controller action, which
actually does not render a view. Instead, it redirects to various views
depending on whether the confirmation token is valid or not. If it is
invalid, we don't care about whether we show DAP or not because the
session does not have trusted info. If the user is already confirmed,
they will be logged in so DAP will not be included. So what we really
care about is just the case when a user has a valid confirmation token.
In that case, the user is redirected to `sign_up_enter_password_url`
(see `process_valid_confirmation_token` method). Now, we are excluding
DAP from that page.
jessieay added a commit that referenced this pull request Mar 31, 2017
This reverts commit b84105f.
pkarman pushed a commit that referenced this pull request Mar 31, 2017
* Revert #1288

This reverts commit b84105f.

* Add back feature specs to confirm DAP behavior

**WHY**: Testing is ideal
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

Successfully merging this pull request may close these issues.

2 participants