mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-30 01:00:18 +01:00
2017-03-27 Fred Gleason <fredg@paravelsystems.com>
* Added a 'WEBAPI_AUTHS' table to the database. * Added a 'USERS.WEBAPI_AUTH_TIMEOUT' field to the database. * Incremented the database version to 260. * Added 'RDUser::webapiAuthTimeout()' and 'RDUser::setWebapiAuthTimeout()' methods in 'lib/rduser.cpp' and 'lib/rduser.h'. * Added a 'WebAPI Timeout' control to the Edit User dialog in 'rdadmin/edit_user.cpp' and 'rdadmin/edit_user.h'. * Implemented a 'CreateTicket' Web API call.
This commit is contained in:
@@ -41,6 +41,13 @@ RDFormPost::RDFormPost(RDFormPost::Encoding encoding,unsigned maxsize,
|
||||
post_error=RDFormPost::ErrorNotInitialized;
|
||||
post_auto_delete=auto_delete;
|
||||
|
||||
//
|
||||
// Client Info
|
||||
//
|
||||
if(getenv("REMOTE_ADDR")!=NULL) {
|
||||
post_client_address.setAddress(getenv("REMOTE_ADDR"));
|
||||
}
|
||||
|
||||
//
|
||||
// Verify Transfer Type
|
||||
//
|
||||
@@ -128,6 +135,12 @@ RDFormPost::Error RDFormPost::error() const
|
||||
}
|
||||
|
||||
|
||||
QHostAddress RDFormPost::clientAddress() const
|
||||
{
|
||||
return post_client_address;
|
||||
}
|
||||
|
||||
|
||||
QStringList RDFormPost::names() const
|
||||
{
|
||||
QStringList list;
|
||||
|
||||
Reference in New Issue
Block a user