Skip to content

Commit

Permalink
Do not fail first login if mailer not properly configured
Browse files Browse the repository at this point in the history
  • Loading branch information
zorn-v committed May 22, 2020
1 parent 0022e7a commit a225452
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<name>Social Login</name>
<summary>Social login via OAuth or OpenID</summary>
<description> </description>
<version>2.4.6</version>
<version>2.4.7</version>
<licence>agpl</licence>
<author>zorn-v</author>
<namespace>SocialLogin</namespace>
Expand Down
4 changes: 3 additions & 1 deletion lib/Controller/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,9 @@ private function notifyAdmins($uid, $displayName, $groupId)
$message = $this->mailer->createMessage();
$message->setTo($sendTo);
$message->useTemplate($template);
$errors = $this->mailer->send($message);
try {
$this->mailer->send($message);
} catch (\Exception $e) {}
}
}
}

0 comments on commit a225452

Please sign in to comment.