Skip to content

Save user in temp session for Two factor authentication - #698

Closed
rochamarcelo wants to merge 4 commits into
CakeDC:masterfrom
rochamarcelo:issue/google-two-factor-auth
Closed

Save user in temp session for Two factor authentication#698
rochamarcelo wants to merge 4 commits into
CakeDC:masterfrom
rochamarcelo:issue/google-two-factor-auth

Conversation

@rochamarcelo

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread src/Controller/Traits/LoginTrait.php Outdated
}
$temporarySession = $this->request->getSession()->read('temporarySession');

if (array_key_exists('secret', $temporarySession)) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

It probably won't interfer with authentication anymore, but this will still trigger an error in case temporarySession isn't set, or if it contains a non-array for whatever reason.

@codecov-io

codecov-io commented Jun 8, 2018

Copy link
Copy Markdown

Codecov Report

Merging #698 into master will decrease coverage by 0.04%.
The diff coverage is 83.33%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #698      +/-   ##
============================================
- Coverage     80.37%   80.33%   -0.05%     
  Complexity      543      543              
============================================
  Files            52       52              
  Lines          1692     1693       +1     
============================================
  Hits           1360     1360              
- Misses          332      333       +1
Impacted Files Coverage Δ Complexity Δ
src/Controller/Traits/LoginTrait.php 50.28% <83.33%> (-0.29%) 51 <0> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d190a3b...c56d6fc. Read the comment docs.

Comment thread src/Controller/Traits/LoginTrait.php Outdated
}

$temporarySession = $this->request->getSession()->read('temporarySession');
if (empty($temporarySession)) {

@ndm2 ndm2 Jun 8, 2018

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

A non-array value could still slip through ;)

@steinkel

Copy link
Copy Markdown
Member

closed by #699

@steinkel steinkel closed this Jun 11, 2018
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.

4 participants