Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 17265 | Rev 17267 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 17265 Rev 17266
Línea 820... Línea 820...
820
                        
820
                        
821
                        //||  empty($password)
821
                        //||  empty($password)
822
                        if(empty($first_name) || empty($last_name) || !filter_var($email, FILTER_VALIDATE_EMAIL) ) {
822
                        if(empty($first_name) || empty($last_name) || !filter_var($email, FILTER_VALIDATE_EMAIL) ) {
823
                            continue;                            
823
                            continue;                            
-
 
824
                        }
-
 
825
 
Línea 824... Línea 826...
824
                        }
826
                        $this->logger->info('Email: ' . $email);
825
                        
827
                        
826
                        if(!in_array($email, $emails)) {
828
                        if(!in_array($email, $emails)) {
827
                            $user = $userMapper->fetchOneByEmail($email);
829
                            $user = $userMapper->fetchOneByEmail($email);
Línea 856... Línea 858...
856
                                'password'  => $password,
858
                                'password'  => $password,
857
                                'email' => $email,
859
                                'email' => $email,
858
                                'status' => 'DUPLICATE IN EXCEL'
860
                                'status' => 'DUPLICATE IN EXCEL'
859
                            ]);
861
                            ]);
860
                        }
862
                        }
861
                    }
-
 
Línea 862... Línea -...
862
 
-
 
863
                    try {
863
 
864
                        $this->logger->info('Cache users: ' . print_r($users, true));
-
 
865
                        $key = md5($currentUser->id . '-' . $topic->uuid . '-' . $topic->uuid);
-
 
866
                        $this->cache->setItem($key, serialize($users));
-
 
867
                    } catch (\Exception $e) {
-
 
868
                        $this->logger->err('Cache operation failed: ' . $e->getMessage());
-
 
869
                        return new JsonModel([
-
 
870
                            'success' => false,
-
 
871
                            'data' => 'ERROR_CACHE_SET_ITEM: ' . $e->getMessage()
-
 
872
                        ]);
864
                        $this->logger->info('Users: ' . print_r($users, true));
Línea 873... Línea 865...
873
                    }
865
                    }
874
 
866
 
875
                    return new JsonModel([
867
                    return new JsonModel([
876
                        'success' => true,
-
 
877
                        'data' => [
868
                        'success' => true,
878
                            'key' => $key,
869
                        'data' => [
879
                            'topic' => $topic->name,
870
                            'topic' => $topic->name,
880
                            'items' => [
871
                            'items' => [
881
                                'ok' => $users,
872
                                'ok' => $users,