| Línea 359... |
Línea 359... |
| 359 |
'success' => false,
|
359 |
'success' => false,
|
| 360 |
'data' => $messages
|
360 |
'data' => $messages
|
| 361 |
]);
|
361 |
]);
|
| 362 |
}
|
362 |
}
|
| 363 |
} else if ($request->isGet()) {
|
363 |
} else if ($request->isGet()) {
|
| - |
|
364 |
|
| - |
|
365 |
|
| - |
|
366 |
$currentUserPlugin = $this->plugin('currentUserPlugin');
|
| Línea 364... |
Línea 367... |
| 364 |
|
367 |
|
| 365 |
if (empty($_SESSION['aes'])) {
|
368 |
if (empty($_SESSION['aes'])) {
|
| 366 |
$_SESSION['aes'] = Functions::generatePassword(16);
|
369 |
$_SESSION['aes'] = Functions::generatePassword(16);
|
| Línea 411... |
Línea 414... |
| 411 |
'defaultNetwork' => $currentNetwork->default,
|
414 |
'defaultNetwork' => $currentNetwork->default,
|
| 412 |
'access_usign_social_networks' => $access_usign_social_networks && $currentNetwork->default == Network::DEFAULT_YES ? 'y' : 'n',
|
415 |
'access_usign_social_networks' => $access_usign_social_networks && $currentNetwork->default == Network::DEFAULT_YES ? 'y' : 'n',
|
| 413 |
'logo_url' => $this->url()->fromRoute('storage-network', ['type' => 'logo']),
|
416 |
'logo_url' => $this->url()->fromRoute('storage-network', ['type' => 'logo']),
|
| 414 |
'navbar_url' => $this->url()->fromRoute('storage-network', ['type' => 'navbar']),
|
417 |
'navbar_url' => $this->url()->fromRoute('storage-network', ['type' => 'navbar']),
|
| 415 |
'favico_url' => $this->url()->fromRoute('storage-network', ['type' => 'favico']),
|
418 |
'favico_url' => $this->url()->fromRoute('storage-network', ['type' => 'favico']),
|
| 416 |
'intro' => $currentNetwork->intro
|
419 |
'intro' => $currentNetwork->intro,
|
| - |
|
420 |
'is_logged_in' => $currentUserPlugin->hasIdentity() ? true : false,
|
| Línea 417... |
Línea 421... |
| 417 |
|
421 |
|
| 418 |
];
|
422 |
];
|
| 419 |
} else {
|
423 |
} else {
|
| 420 |
$sandbox = $this->config['leaderslinked.runmode.sandbox'];
|
424 |
$sandbox = $this->config['leaderslinked.runmode.sandbox'];
|
| Línea 436... |
Línea 440... |
| 436 |
'form' => $form,
|
440 |
'form' => $form,
|
| 437 |
'site_key' => $site_key,
|
441 |
'site_key' => $site_key,
|
| 438 |
'google_map_key' => $google_map_key,
|
442 |
'google_map_key' => $google_map_key,
|
| 439 |
'aes' => $_SESSION['aes'],
|
443 |
'aes' => $_SESSION['aes'],
|
| 440 |
'defaultNetwork' => $currentNetwork->default,
|
444 |
'defaultNetwork' => $currentNetwork->default,
|
| - |
|
445 |
'is_logged_in' => $currentUserPlugin->hasIdentity() ? true : false,
|
| 441 |
'access_usign_social_networks' => $access_usign_social_networks && $currentNetwork->default == Network::DEFAULT_YES ? 'y' : 'n',
|
446 |
'access_usign_social_networks' => $access_usign_social_networks && $currentNetwork->default == Network::DEFAULT_YES ? 'y' : 'n',
|
| 442 |
]);
|
447 |
]);
|
| Línea 443... |
Línea 448... |
| 443 |
|
448 |
|
| 444 |
return $viewModel;
|
449 |
return $viewModel;
|