added: flag has_pass to User structure

if false that means the user has not set a password yet 
       (this can be used by a plugins to create a new account without a password set)
       in order to login the user first has to set a new password
       (this can be done from a some kind of activation link send via email etc)
       



git-svn-id: svn://ttmath.org/publicrep/winix/trunk@954 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2014-06-07 11:20:44 +00:00
parent 222955a2e7
commit 01892d2766
9 changed files with 60 additions and 26 deletions

View File

@@ -34,11 +34,11 @@ public:
// default: true
bool demonize;
// system user name (to which drop privileges)
// system user's name to whom winix should drop privileges
// used only if winix is started as the root
std::string user;
// system group name (to which drop privileges)
// system group's name to which drop privileges
// used only if winix is started as the root
std::string group;
@@ -51,21 +51,23 @@ public:
// log file name, log file name for notifications (sending emails, etc)
std::string log_file, log_notify_file;
// the log level (how much info should be inserted to logs)
// 1 - minimum
// 2 - (default)
// 3 - maximum - all logs
int log_level;
// logging to stdout too
// only if demonize is 'false'
// this option is valid only if 'demonize' option is set to 'false'
// default: false
bool log_stdout;
// how many requests should be saved in the same time
// if you have a very busy server you can incrase this value
// default: 1
int log_request;
// whether to save each line of the config (use it for debug purposes)
// whether to save each line of the config (used for debugging purposes)
// default: false
bool log_save_each_line;
@@ -80,6 +82,7 @@ public:
bool log_server_answer;
// logging db queries
// warning: use it only on a developer's server as it logs the hashes of passwords too
// default: false
bool log_db_query;
@@ -89,7 +92,7 @@ public:
// how many characters in values should be logged from POST parameters
// default: 80
// set to 0 to turn off
// set to 0 to turn it off
size_t log_post_value_size;
// request delimiter in the log file, default "---------"
@@ -132,39 +135,46 @@ public:
// default: index.html
std::wstring templates_index;
// if true then only root can use 'template' function
// if true then only root can use 'template' winix function
// default: false
bool template_only_root_use_template_fun;
// the database name, user name and a password for the PostgreSQL database
std::string db_database;
std::string db_user;
std::string db_pass;
// the name of the cookie which has the session identifier
std::wstring http_session_id_name;
// string used in a place where is a user (or group) selected
// !! IMPROVE ME should be moved to locales
std::wstring priv_no_user;
std::wstring priv_no_group;
// time in seconds when the user will be automatically logged out (iddle time)
// time in seconds when a user will be automatically logged out (iddle time)
// default: 10800 = 3 hours
int session_max_idle;
// time in seconds when the user will be automatically logged out (when he selected 'remember me' option)
// time in seconds when a user will be automatically logged out
// when he has selected the 'remember me' option when logging in
// this time is usually greater than session_max_idle
// default: 16070400 = 3 months
int session_remember_max_idle;
// this file is used when the program is starting and ending
// a file to which winix stores sessions info
// it is used when winix starts (boots) and quits
std::string session_file;
// how many sessions can be (zero turn off this checking)
// default: 1000000 (one milion)
size_t session_max;
// allow the html output to be compressed
// allow the winix output to be compressed
// default: true
bool compression;
// if the output is shorter than this value then it will not be compressed
// compress only if the output is greater or equal to this value
// default: 512 bytes
size_t compression_page_min_size;
@@ -191,12 +201,12 @@ public:
bool html_filter_trim_white;
// when long words should be broken (a space will be inserted)
// default: after 60 non white characters will be put a space
// default: after 60 non white characters there will be put a space
// set zero to turn off
size_t html_filter_break_word;
// when long lines should be broken (a new line character will be inserted)
// default: 80
// default: 110
// set zero to turn off
size_t html_filter_wrap_line;
@@ -215,9 +225,11 @@ public:
HTMLFilter::OrphanMode html_filter_orphans_mode;
// the url of a new empty item (if there is not the subject too)
// !! IMPROVE ME should be moved to locale
std::wstring item_url_empty;
// maximum length of a file send by post multipart form
// default: 8388608 - 8MB
// 0 - not used
size_t post_file_max;