Commit 13a84f2645a21f8b0064432e465af61671220d92

Authored by Benjamin Renard
1 parent 84d442b4

Call WS init during user init

Showing 1 changed file with 7 additions and 0 deletions   Show diff stats
php/classes/UserMgr.php
... ... @@ -516,6 +516,13 @@ class UserMgr
516 516 $this->isFirst = true;
517 517 }
518 518  
  519 + $requestManager = new RequestManagerClass();
  520 + try {
  521 + $res = $requestManager->runIHMRequest($this->user, $this->getIPclient(), FunctionTypeEnumClass::USERWSINIT, array());
  522 + } catch (Exception $e) {
  523 + die("Login for ".$this->user." failed: Error in WS dirs - ".$e->getMessage());
  524 + }
  525 +
519 526 if (file_exists($this->userdir.'newLogin')) {
520 527 touch($this->userdir.'lastLogin', filemtime($this->userdir.'newLogin'));
521 528 }
... ...