Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 3298 Rev 3364
Línea 221... Línea 221...
221
                    
221
                    
Línea 222... Línea 222...
222
                    
222
                    
Línea 223... Línea 223...
223
                    
223
                    
224
                    $this->logger->info('Ingreso a LeadersLiked', ['user_id' => $user->id, 'ip' => Functions::getUserIP()]);
224
                    $this->logger->info('Ingreso a LeadersLiked', ['user_id' => $user->id, 'ip' => Functions::getUserIP()]);
225
                    
225
                    
226
                    $user_redirect = $this->cache->getItem('user_redirect');
226
                    $user_share_invitation = $this->cache->getItem('user_share_invitation');
227
                    
227
                    
Línea 228... Línea 228...
228
                    if($user_redirect) {
228
                    if($user_share_invitation) {
Línea 248... Línea 248...
248
                        }
248
                        }
249
                    }
249
                    }
Línea 250... Línea -...
250
                    
-
 
251
                    
-
 
252
                    
250
                    
253
                    $url_redirect = $this->cache->getItem('url_redirect');
-
 
254
                    if($url_redirect) {
-
 
255
                        $data = [
-
 
256
                            'success'   => true,
-
 
257
                            'data'      => $url_redirect,
-
 
258
                        ];
251
                    
259
                    } else {
252
                    
260
                        $data = [
-
 
261
                            'success'   => true,
253
                    $data = [
262
                            'data'      => $this->url()->fromRoute('dashboard'),
254
                        'success'   => true,
263
                        ];
255
                        'data'      => $this->url()->fromRoute('dashboard'),
264
                    }
-
 
265
                    
-
 
266
                    $this->cache->removeItem('user_redirect');
-
 
267
                    $this->cache->removeItem('url_redirect');
-
 
268
                    
-
 
269
                    
-
 
Línea 270... Línea 256...
270
                    
256
                    ];
Línea 271... Línea 257...
271
                    
257
                   
Línea 936... Línea 922...
936
                        'success' => false,
922
                        'success' => false,
937
                        'data' => 'ERROR_EMAIL_IS_REGISTERED'
923
                        'data' => 'ERROR_EMAIL_IS_REGISTERED'
938
                    ]);
924
                    ]);
939
                } else {
925
                } else {
Línea 940... Línea 926...
940
                    
926
                    
941
                    $user_redirect = $this->cache->getItem('user_redirect');
-
 
-
 
927
                    $user_share_invitation = $this->cache->getItem('user_share_invitation');
Línea 942... Línea 928...
942
                    $url_redirect = $this->cache->getItem('url_redirect');
928
 
943
                    
929
                    
944
                    if($user_redirect) {
930
                    if($user_share_invitation) {
945
                        $userRedirect = $userMapper->fetchOneByUuid($user_redirect);
931
                        $userRedirect = $userMapper->fetchOneByUuid($user_share_invitation);
Línea 946... Línea 932...
946
                        if($userRedirect && $userRedirect->status == User::STATUS_ACTIVE) {
932
                        if($userRedirect && $userRedirect->status == User::STATUS_ACTIVE) {
947
                            $password_hash = password_hash($dataPost['password'], PASSWORD_DEFAULT);
933
                            $password_hash = password_hash($dataPost['password'], PASSWORD_DEFAULT);
Línea 986... Línea 972...
986
                                    
972
                                    
987
                                    $connectionMapper->insert($connection);
973
                                    $connectionMapper->insert($connection);
Línea 988... Línea 974...
988
                                }
974
                                }
989
                                
-
 
990
                                
975
                                
Línea 991... Línea -...
991
                                $this->cache->removeItem('user_redirect');
-
 
992
                                $this->cache->removeItem('url_redirect');
-
 
993
                                
-
 
994
                                
-
 
995
                                if($url_redirect) {
-
 
996
                                    $data = [
-
 
997
                                        'success'   => true,
-
 
998
                                        'data'      => $url_redirect,
-
 
999
                                    ];
-
 
1000
                                } else {
-
 
1001
                                    $data = [
-
 
Línea -... Línea 976...
-
 
976
                                
-
 
977
                                $this->cache->removeItem('user_share_invitation');
-
 
978
 
-
 
979
                                
-
 
980
                                
Línea 1002... Línea 981...
1002
                                        'success'   => true,
981
                                $data = [
Línea 1003... Línea 982...
1003
                                        'data'      => $this->url()->fromRoute('home'),
982
                                    'success'   => true,
1004
                                    ];
983
                                    'data'      => $this->url()->fromRoute('home'),
Línea 1194... Línea 1173...
1194
                    if($userMapper->activateAccount((int) $user->id)) {
1173
                    if($userMapper->activateAccount((int) $user->id)) {
1195
                        $this->logger->info('Verificación email realizada ', ['user_id' => $user->id, 'ip' => Functions::getUserIP()]);
1174
                        $this->logger->info('Verificación email realizada ', ['user_id' => $user->id, 'ip' => Functions::getUserIP()]);
Línea 1196... Línea 1175...
1196
                        
1175
                        
Línea 1197... Línea 1176...
1197
                        $flashMessenger->addSuccessMessage('LABEL_YOUR_EMAIL_HAS_BEEN_VERIFIED');
1176
                        $flashMessenger->addSuccessMessage('LABEL_YOUR_EMAIL_HAS_BEEN_VERIFIED');
Línea 1198... Línea 1177...
1198
                    
1177
                    
1199
                        $user_redirect = $this->cache->getItem('user_redirect');
1178
                        $user_share_invitation = $this->cache->getItem('user_share_invitation');
1200
                        
1179
                        
1201
                        if($user_redirect) {
1180
                        if($user_share_invitation) {
1202
                            $userRedirect = $userMapper->fetchOneByUuid($user_redirect);
1181
                            $userRedirect = $userMapper->fetchOneByUuid($user_share_invitation);
Línea 1203... Línea 1182...
1203
                            if($userRedirect && $userRedirect->status == User::STATUS_ACTIVE && $user->id != $userRedirect->id) {
1182
                            if($userRedirect && $userRedirect->status == User::STATUS_ACTIVE && $user->id != $userRedirect->id) {
Línea 1221... Línea 1200...
1221
                            }
1200
                            }
1222
                        }
1201
                        }
Línea 1223... Línea -...
1223
                        
-
 
1224
                        
-
 
1225
                        
1202
                        
1226
                        $url_redirect = $this->cache->getItem('url_redirect');
1203
                        
1227
                        if($url_redirect) {
-
 
1228
                            $data = [
-
 
1229
                                'success'   => true,
-
 
1230
                                'data'      => $url_redirect,
-
 
1231
                            ];
-
 
1232
                        } else {
1204
                        
1233
                            $data = [
-
 
1234
                                'success'   => true,
1205
                        $data = [
-
 
1206
                           'success'   => true,
Línea 1235... Línea 1207...
1235
                                'data'      => $this->url()->fromRoute('home'),
1207
                           'data'      => $this->url()->fromRoute('home'),
1236
                            ];
-
 
Línea 1237... Línea 1208...
1237
                        }
1208
                        ];
Línea 1238... Línea 1209...
1238
                        
1209
    
1239
                        $this->cache->removeItem('user_redirect');
1210