changed: we should use SSL connection for such functions as:
adduser, login git-svn-id: svn://ttmath.org/publicrep/winix/trunk@766 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
#include "misc.h"
|
||||
#include "error.h"
|
||||
#include "templates/templates.h"
|
||||
#include "functions/functionbase.h"
|
||||
#include "functions/functions.h"
|
||||
#include "plugin.h"
|
||||
|
||||
|
||||
@@ -40,6 +40,11 @@ void System::SetSynchro(Synchro * psynchro)
|
||||
}
|
||||
|
||||
|
||||
void System::SetFunctions(Functions * pfunctions)
|
||||
{
|
||||
functions = pfunctions;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void System::Init()
|
||||
@@ -92,7 +97,10 @@ bool ssl = false;
|
||||
|
||||
if( can_use_ssl )
|
||||
{
|
||||
if( !config->use_ssl_only_for_logged_users || cur->session->puser )
|
||||
if( !config->use_ssl_only_for_logged_users ||
|
||||
cur->session->puser ||
|
||||
cur->request->function == &functions->fun_login ||
|
||||
cur->request->function == &functions->fun_adduser)
|
||||
{
|
||||
str += config->url_ssl_proto;
|
||||
ssl = true;
|
||||
|
||||
Reference in New Issue
Block a user