From 4af7bf81b1e80f5cc2797877118e9db370998132 Mon Sep 17 00:00:00 2001 From: Pellaeon Lin Date: Sat, 9 Mar 2019 11:02:51 +0000 Subject: [PATCH] Fix `settings_users` route does not exist #169 ref: the route was added in nextcloud 14 in this commit https://github.com/nextcloud/server/commit/2963fdc879de8c84311eae66812317e6c455ca0b --- appinfo/info.xml | 2 +- service/mailservice.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/appinfo/info.xml b/appinfo/info.xml index 45d666d..713ba15 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -41,7 +41,7 @@ Send BTC to `33pStaSaf4sDUA8XBAHTq7ZDQpCVFQArxQ` pgsql mysql - + OCA\Registration\Settings\RegistrationSettings diff --git a/service/mailservice.php b/service/mailservice.php index 0232cda..bb069b9 100644 --- a/service/mailservice.php +++ b/service/mailservice.php @@ -147,7 +147,7 @@ class MailService { * @throws \Exception */ private function sendNewUserNotifEmail(array $to, $username, $userIsEnabled) { - $link = $this->urlGenerator->linkToRoute('settings_users'); + $link = $this->urlGenerator->linkToRoute('settings.Users.usersList'); $link = $this->urlGenerator->getAbsoluteURL($link); $template_var = [ 'user' => $username,