Version 4.7.0
This commit is contained in:
1 parent
517a5e1f70
commit
8ba7d43898
1933 files changed
+65613
-11332
No files matched your search
@@ -30,7 +30,7 @@ class _Application extends \IPS\Application
|
||||
if( \IPS\Request::i()->member )
|
||||
{
|
||||
$member = \IPS\Member::load( \IPS\Request::i()->member );
|
||||
if( !\IPS\Login::compareHashes( md5( ( $member->members_pass_hash ?: $member->email ) . $member->members_pass_salt ), (string) \IPS\Request::i()->key ) )
|
||||
if( !\IPS\Login::compareHashes( $member->getUniqueMemberHash(), (string) \IPS\Request::i()->key ) )
|
||||
{
|
||||
\IPS\Output::i()->error( 'node_error', '2L217/1', 404, '' );
|
||||
}
|
||||
@@ -189,14 +189,18 @@ class _Application extends \IPS\Application
|
||||
}
|
||||
|
||||
/**
|
||||
* Return an array of specific links to add to the sitemap
|
||||
* Returns a list of all existing webhooks and their payload in this app.
|
||||
*
|
||||
* @return array
|
||||
* @return array
|
||||
*/
|
||||
public function sitemapLinks()
|
||||
public function getWebhooks() : array
|
||||
{
|
||||
return array(
|
||||
\IPS\Http\Url::internal( 'app=calendar&module=calendar&controller=view', 'front', 'calendar' ),
|
||||
);
|
||||
return array_merge( [
|
||||
'calendarEvent_rsvp' => [
|
||||
'event' => \IPS\calendar\Event::class,
|
||||
'action' => "string with the state (attending/etc..)",
|
||||
'attendee' => \IPS\Member::class
|
||||
]
|
||||
],parent::getWebhooks());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user