Skip to content

Conversation

@ChristophWurst
Copy link
Member

@ChristophWurst ChristophWurst added this to the Nextcloud 11.0 milestone Aug 30, 2016
@mention-bot
Copy link

@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'));
Copy link
Member Author

Choose a reason for hiding this comment

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

is there a way to reliably determine the output of OC_Util::getDefaultPageUrl() while testing? Then I could compare the actual return values here.

Copy link
Member

Choose a reason for hiding this comment

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

I don't think so, but you can just make $expected use OC_Util::getDefaultPageUrl() as well. Not perfect, but works ;)

@rullzer
Copy link
Member

rullzer commented Aug 31, 2016

LGTM

1 similar comment
@LukasReschke
Copy link
Member

LGTM

@LukasReschke LukasReschke merged commit 2685129 into master Aug 31, 2016
@LukasReschke LukasReschke deleted the 2fa-redirect-default-app branch August 31, 2016 17:46
@juliusknorr
Copy link
Member

juliusknorr commented Sep 15, 2016

This is a bug fix, so i guess we should backport this? cc @karlitschek @ChristophWurst

Bug on stable9 stable10 reported on the forums: https://help.nextcloud.com/t/apporder-and-totp-wrong-landing-page/3252

@nickvergessen
Copy link
Member

stable9 doesnt have 2 factor, therefor the fix is different.
But was this backported to 10? @ChristophWurst

@ChristophWurst
Copy link
Member Author

I don't think this was backported, or at least I didn't do it

@juliusknorr
Copy link
Member

@nickvergessen Ah of course, i mean stable10

@ghost
Copy link

ghost commented Sep 15, 2016

@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
Copy link
Member

I think a backport makes sense! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Redirect after login with TOTP

8 participants