diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-04-19 19:23:42 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-04-19 19:23:42 -0400 |
commit | f190be9e2d4d285fb71d84e5d3884206067cf7af (patch) | |
tree | ca0c4bd21eeb85102731b79eb5dda526655ce82b /app/Model/User.php | |
parent | ac86c3100a1030026024c33c1cf02ec79f08ff51 (diff) |
Add Sendgrid integration (incoming email handling)
Diffstat (limited to 'app/Model/User.php')
-rw-r--r-- | app/Model/User.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/Model/User.php b/app/Model/User.php index d9f174bd..be2b034b 100644 --- a/app/Model/User.php +++ b/app/Model/User.php @@ -150,6 +150,10 @@ class User extends Base */ public function getByEmail($email) { + if (empty($email)) { + return false; + } + return $this->db->table(self::TABLE)->eq('email', $email)->findOne(); } |