Merge pull request #274 from nextcloud/bugfix/267/catch-exception-when-email-is-not-configured
Catch exception when email is not configured
This commit is contained in:
commit
18c8d3995d
|
|
@ -143,6 +143,8 @@ class RegisterController extends Controller {
|
|||
$this->mailService->sendTokenByMail($registration);
|
||||
} catch (RegistrationException $e) {
|
||||
return $this->showEmailForm($email, $e->getMessage());
|
||||
} catch (\Exception $e) {
|
||||
return $this->showEmailForm($email, $this->l10n->t('A problem occurred sending email, please contact your administrator.'));
|
||||
}
|
||||
|
||||
return new RedirectResponse(
|
||||
|
|
|
|||
Loading…
Reference in New Issue