Uh oh!
There was an error while loading. Please reload this page.
redirect to default app after solving the 2FA challenge - #1188
Conversation
mention-bot
commented
Aug 30, 2016
@ChristophWurst, thanks for your PR! By analyzing the annotation information on this pull request, we identified @nickvergessen and @rullzer to be potential reviewers |
| $expected = new \OCP\AppFramework\Http\RedirectResponse('files/index/url'); | ||
| $this->assertEquals($expected, $this->controller->solveChallenge('myprovider', 'token')); | ||
| $this->assertInstanceOf('\OCP\AppFramework\Http\RedirectResponse', $this->controller->solveChallenge('myprovider', 'token')); |
There was a problem hiding this comment.
is there a way to reliably determine the output of OC_Util::getDefaultPageUrl() while testing? Then I could compare the actual return values here.
There was a problem hiding this comment.
I don't think so, but you can just make $expected use OC_Util::getDefaultPageUrl() as well. Not perfect, but works ;)
rullzer
commented
Aug 31, 2016
LGTM |
1 similar comment
LukasReschke
commented
Aug 31, 2016
LGTM |
This is a bug fix, so i guess we should backport this? cc @karlitschek@ChristophWurst Bug on |
nickvergessen
commented
Sep 15, 2016
stable9 doesnt have 2 factor, therefor the fix is different. |
ChristophWurst
commented
Sep 15, 2016
I don't think this was backported, or at least I didn't do it |
juliusknorr
commented
Sep 15, 2016
@nickvergessen Ah of course, i mean stable10 |
@ChristophWurst@juliushaertl@nickvergessen Sorry, this was my fault. I posted a wrong version number in the forum. The correct version is 9.1.0.16. It works. Tank you! |
karlitschek
commented
Sep 15, 2016
I think a backport makes sense! 👍 |
fixesnextcloud/twofactor_totp#52