application/modules/auth/authapi.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 362-370 (lines=9) @@ | 
                                                            
                                    | 359 |  |         return json_encode($jsonResponse); | 
                                                            
                                    | 360 |  |     } | 
                                                            
                                    | 361 |  |  | 
                                                            
                                    | 362 |  |     public function email_check($email) { | 
                                                            
                                    | 363 |  |  | 
                                                            
                                    | 364 |  |         $result = $this->dx_auth->is_email_available($email); | 
                                                            
                                    | 365 |  |         if (!$result) { | 
                                                            
                                    | 366 |  |             $this->form_validation->set_message('email_check', lang('A user with this email is already registered.', 'auth')); | 
                                                            
                                    | 367 |  |         } | 
                                                            
                                    | 368 |  |  | 
                                                            
                                    | 369 |  |         return $result; | 
                                                            
                                    | 370 |  |     } | 
                                                            
                                    | 371 |  |  | 
                                                            
                                    | 372 |  |     /** | 
                                                            
                                    | 373 |  |      * Provides cancelling account if user is logged in | 
                                                                        
                 
                                                            
                    
application/modules/auth/auth.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 66-73 (lines=8) @@ | 
                                                            
                                    | 63 |  |      * @param string $email | 
                                                            
                                    | 64 |  |      * @return bool | 
                                                            
                                    | 65 |  |      */ | 
                                                            
                                    | 66 |  |     public function email_check($email) { | 
                                                            
                                    | 67 |  |         $result = $this->dx_auth->is_email_available($email); | 
                                                            
                                    | 68 |  |         if (!$result) { | 
                                                            
                                    | 69 |  |             $this->form_validation->set_message('email_check', lang('A user with this email is already registered.', 'auth')); | 
                                                            
                                    | 70 |  |         } | 
                                                            
                                    | 71 |  |  | 
                                                            
                                    | 72 |  |         return $result; | 
                                                            
                                    | 73 |  |     } | 
                                                            
                                    | 74 |  |  | 
                                                            
                                    | 75 |  |     /** | 
                                                            
                                    | 76 |  |      * @param string $code |