mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
commit
1da4b330b0
@ -417,7 +417,7 @@ void JsonApiServer::registerHandler(
|
|||||||
|
|
||||||
if(!rsLoginHelper->isLoggedIn())
|
if(!rsLoginHelper->isLoggedIn())
|
||||||
{
|
{
|
||||||
session->close(rb::CONFLICT);
|
session->close(rb::CONFLICT, corsOptionsHeaders);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -429,7 +429,7 @@ void JsonApiServer::registerHandler(
|
|||||||
|
|
||||||
if(authToken != "Basic")
|
if(authToken != "Basic")
|
||||||
{
|
{
|
||||||
session->close(rb::UNAUTHORIZED);
|
session->close(rb::UNAUTHORIZED, corsOptionsHeaders);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -437,7 +437,7 @@ void JsonApiServer::registerHandler(
|
|||||||
authToken = decodeToken(authToken);
|
authToken = decodeToken(authToken);
|
||||||
|
|
||||||
if(isAuthTokenValid(authToken)) callback(session);
|
if(isAuthTokenValid(authToken)) callback(session);
|
||||||
else session->close(rb::UNAUTHORIZED);
|
else session->close(rb::UNAUTHORIZED, corsOptionsHeaders);
|
||||||
} );
|
} );
|
||||||
|
|
||||||
mResources.push_back(resource);
|
mResources.push_back(resource);
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>1139</width>
|
<width>600</width>
|
||||||
<height>1171</height>
|
<height>400</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
|
Loading…
Reference in New Issue
Block a user