Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 7330 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 7330 Rev 7355
Línea 654... Línea 654...
654
                'rand' => $rand,
654
                'rand' => $rand,
655
                'time' => $timestamp,
655
                'time' => $timestamp,
656
            ];
656
            ];
Línea 657... Línea 657...
657
 
657
 
-
 
658
            $currentUserPlugin->clearIdentity();
-
 
659
 
-
 
660
            return new JsonModel([
-
 
661
                'success'   => true,
-
 
662
                'data'      => [
-
 
663
                    'message' => 'LABEL_SIGNOUT_SUCCESSFULLY',
-
 
664
                    'url' => 'https://' . $network->main_hostname . '/signin/impersonate' . '?' . http_build_query($params)
-
 
665
                ],    
-
 
666
                
-
 
667
            ]);
-
 
668
            
658
            $currentUserPlugin->clearIdentity();
669
            
659
            $url = 'https://' . $network->main_hostname . '/signin/impersonate' . '?' . http_build_query($params);
670
           // $url = 'https://' . $network->main_hostname . '/signin/impersonate' . '?' . http_build_query($params);
660
            return $this->redirect()->toUrl($url);
671
           // return $this->redirect()->toUrl($url);
Línea 661... Línea 672...
661
        } else {
672
        } else {
Línea 662... Línea 673...
662
 
673
 
663
 
674
 
Línea 664... Línea 675...
664
            if ($currentUserPlugin->hasIdentity()) {
675
            if ($currentUserPlugin->hasIdentity()) {
Línea 665... Línea 676...
665
 
676
 
-
 
677
                $this->logger->info('Desconexión de LeadersLinked', ['user_id' => $currentUserPlugin->getUserId(), 'ip' => Functions::getUserIP()]);
-
 
678
            }
-
 
679
 
-
 
680
            $currentUserPlugin->clearIdentity();
-
 
681
 
-
 
682
           // return $this->redirect()->toRoute('home');
-
 
683
           
-
 
684
            return new JsonModel([
-
 
685
                'success'   => true,
666
                $this->logger->info('Desconexión de LeadersLinked', ['user_id' => $currentUserPlugin->getUserId(), 'ip' => Functions::getUserIP()]);
686
                'data'      => [
667
            }
687
                    'message' => 'LABEL_SIGNOUT_SUCCESSFULLY',
Línea 668... Línea 688...
668
 
688
                    'url' => '',
Línea 773... Línea 793...
773
                        ]);
793
                        ]);
774
                    } else {
794
                    } else {
775
                        $this->logger->err('Restablecer contraseña - Error desconocido', ['user_id' => $user->id, 'ip' => Functions::getUserIP()]);
795
                        $this->logger->err('Restablecer contraseña - Error desconocido', ['user_id' => $user->id, 'ip' => Functions::getUserIP()]);
Línea 776... Línea 796...
776
 
796
 
777
                        return new JsonModel([
797
                        return new JsonModel([
778
                            'success'   => true,
798
                            'success'   => false,
Línea 779... Línea 799...
779
                            'data'      => 'ERROR_THERE_WAS_AN_ERROR'
799
                            'data'      => 'ERROR_THERE_WAS_AN_ERROR'
780
 
800
 
781
                        ]);
801
                        ]);