Skip to content
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

Support redirecting to custom URL after registration. #187

Open
wants to merge 1 commit into
base: master
from

Conversation

@fancycode
Copy link

commented Aug 8, 2019

The use case is to trigger sending the registration confirmation through an API and have the user enter his details after clicking on the link in the mail. After the details have been entered and the account is created, it allows to redirect to a custom URL instead of the default Nextcloud page.

@@ -78,7 +79,7 @@ public function setUp () {
$this->groupManager = \OC::$server->getGroupManager();
$this->defaults = $this->createMock(Defaults::class);
$this->random = \OC::$server->getSecureRandom();
$this->usersession = $this->createMock(IUserSession::class);
$this->usersession = $this->createMock(UserSession::class);

This comment has been minimized.

Copy link
@fancycode

fancycode Aug 8, 2019

Author

I had to change this to OC\User\Session so the mock object implements the createSessionToken method (which the IUserSession doesn't define).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.