예제 #1
0
 /**
  * Gets a code for when the user is persisted to a cookie or session which identifies the user.
  * @return string
  */
 public function getPersistCode()
 {
     if (!$this->persist_code) {
         return parent::getPersistCode();
     }
     return $this->persist_code;
 }
예제 #2
0
파일: User.php 프로젝트: nnmer/october
 /**
  * Gets a code for when the user is persisted to a cookie or session which identifies the user.
  * @return string
  */
 public function getPersistCode()
 {
     // Option A: @todo config
     // return parent::getPersistCode();
     // Option B:
     if (!$this->persist_code) {
         return parent::getPersistCode();
     }
     return $this->persist_code;
 }
예제 #3
0
 /**
  * Gets a code for when the user is persisted to a cookie or session which identifies the user.
  * @return string
  */
 public function getPersistCode()
 {
     $block = UserSettings::get('block_persistence', false);
     if ($block || !$this->persist_code) {
         return parent::getPersistCode();
     }
     return $this->persist_code;
 }