Browse Source

Now throwing an exception if login fails.

pull/1/merge
Gergely Polonkai 7 years ago
parent
commit
fdde9b5bfa
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      Service/Sender.php

+ 2
- 0
Service/Sender.php View File

@@ -38,6 +38,8 @@ class Sender
{
if ($this->sender->login($this->container->getParameter('username'), $this->container->getParameter('password')) === true) {
$this->loggedIn = true;
} else {
throw new \RuntimeException('Unable to login to gateway!');
}
}



Loading…
Cancel
Save