src/AdminStorePrepare.php
public function adm_get_safe_user_data() {
		if (!$this->store_is_logged_in())
			return [AdminStoreError::USER_NOT_LOGGED_IN];
		$data = $this->user_data;
		foreach (['upass', 'usalt', 'sid', 'token', 'expire'] as $key)
			unset($data[$key]);
		return [0, $data];
	}
public function adm_get_safe_user_data() {
		if (!$this->store_is_logged_in())
			return [AdminStoreError::USER_NOT_LOGGED_IN];
		$data = $this->user_data;
		foreach (['upass', 'usalt', 'sid', 'token', 'expire'] as $key)
			unset($data[$key]);
		return [0, $data];
	}
public function adm_get_safe_user_data ( ) { if ( ! $ this -> store_is_logged_in ( ) ) return [ AdminStoreError :: USER_NOT_LOGGED_IN ] ; $ data = $ this -> user_data ; foreach ( [ 'upass' , 'usalt' , 'sid' , 'token' , 'expire' ] as $ key ) unset ( $ data [ $ key ] ) ; return [ 0 , $ data ] ; }
Get user data excluding sensitive info.
Get user data excluding sensitive info .