diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-04-19 14:48:12 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-04-19 14:48:12 -0400 |
commit | 1891e87d035c235550b5889da585e166cf49502f (patch) | |
tree | a6100a70184e635788aaed4071ca968a0fde3088 /app/Model/User.php | |
parent | 370b5a0fd7c1dba60e3b973506ba087adba42be0 (diff) |
Add Postmark integration (inbound emails for task creation)
Diffstat (limited to 'app/Model/User.php')
-rw-r--r-- | app/Model/User.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/Model/User.php b/app/Model/User.php index 6c348caa..d9f174bd 100644 --- a/app/Model/User.php +++ b/app/Model/User.php @@ -142,6 +142,18 @@ class User extends Base } /** + * Get a specific user by the email address + * + * @access public + * @param string $email Email + * @return array + */ + public function getByEmail($email) + { + return $this->db->table(self::TABLE)->eq('email', $email)->findOne(); + } + + /** * Get all users * * @access public |