From 1891e87d035c235550b5889da585e166cf49502f Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 19 Apr 2015 14:48:12 -0400 Subject: Add Postmark integration (inbound emails for task creation) --- app/Model/User.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'app/Model/User.php') 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 @@ -141,6 +141,18 @@ class User extends Base return $this->db->table(self::TABLE)->eq('username', $username)->findOne(); } + /** + * 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 * -- cgit v1.2.3