diff options
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 | 
