I was actually just following what ion_auth_mongodb_model does in
email_check().  Looks like it's to ignore case.


On Fri, Aug 16, 2013 at 1:41 PM, Ben Edmunds <notifications@github.com>wrote:

> In controllers/auth.php:
>
> > @@ -208,8 +208,23 @@ function forgot_password()
> >  		else
> >  		{
> >  			// get identity for that email
> > -			$config_tables = $this->config->item('tables', 'ion_auth');
> > -			$identity = $this->db->where('email', $this->input->post('email'))->limit('1')->get($config_tables['users'])->row();
> > +			if ($this->config->item('use_mongodb', 'ion_auth')) {
> > +				$email = new MongoRegex('/^'.$this->input->post('email').'$/i');
>
> Why are you doing a regex for email?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/benedmunds/CodeIgniter-Ion-Auth/pull/488/files#r5819613>
> .
>