Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
01bd26d2
Commit
01bd26d2
authored
Oct 06, 2014
by
Fabio Bas
Browse files
Misc typos fixing
parent
91dafdb3
Changes
2
Hide whitespace changes
Inline
Side-by-side
servatrice/servatrice.ini.example
View file @
01bd26d2
; Servatrice configuration file
; Servatrice configuration file
;
;
; This is the main configuration file for Servatrice; while using a configuration is not mandatory,
; This is the main configuration file for Servatrice; while using a configuration is not mandatory,
; you may want to customize some aspects of your servatrice instance, lie its name, port or the way
; you may want to customize some aspects of your servatrice instance, li
k
e its name, port or the way
; users can authenticate to the server.
; users can authenticate to the server.
...
@@ -22,18 +22,19 @@ port=4747
...
@@ -22,18 +22,19 @@ port=4747
; long delays (lag), you may want to try increasing this value; default is 1.
; long delays (lag), you may want to try increasing this value; default is 1.
number_pools=1
number_pools=1
; When database is en
e
abled, servatrice writes the server status in the "update" database table; this
; When database is enabled, servatrice writes the server status in the "update" database table; this
; setting defines every how many milliseconds servatrice will update its status; default is 15000 (15 secs)
; setting defines every how many milliseconds servatrice will update its status; default is 15000 (15 secs)
statusupdate=15000
statusupdate=15000
; Do you want servatrice to write important events and errors to a logfile? Default is 1 (yes).
; Do you want servatrice to write important events and errors to a logfile? Default is 1 (yes).
writelog=1
writelog=1
; Choose a name for the log file, if enabled; the default file name is server.log
; Choose a name for the log file, if enabled; you can specify an absolute path or a path relative to
; the servatrice executable; the default file name is server.log (in the same path as servatrice)
logfile=server.log
logfile=server.log
; You may want to silence some
useless,
commonly recurring messages in the logfile. This setting can contain
; You may want to silence some commonly recurring messages in the logfile. This setting can contain
a
;
a
comma-separed list of words; if any message that is about to be logged contains at least one of these words,
; comma-separed list of words; if any message that is about to be logged contains at least one of these words,
; it won't be logged. Default is empty; example: "kittens,ponies,faires"
; it won't be logged. Default is empty; example: "kittens,ponies,faires"
logfilters=""
logfilters=""
...
@@ -47,11 +48,10 @@ logfilters=""
...
@@ -47,11 +48,10 @@ logfilters=""
; Please note that only the "sql" method permits to have registered users and store their data on the server.
; Please note that only the "sql" method permits to have registered users and store their data on the server.
method=none
method=none
; if the chosen authentication metho
s
is password, here you can define the password your users will use to log in
; if the chosen authentication metho
d
is password, here you can define the password your users will use to log in
password=123456
password=123456
; Accept only registered users? default is 0 (accept unregistered users)
; Accept only registered users? default is 0 (accept unregistered users)
; FIXME: unused / not working
regonly=0
regonly=0
...
...
servatrice/src/servatrice_database_interface.cpp
View file @
01bd26d2
...
@@ -95,7 +95,7 @@ AuthenticationResult Servatrice_DatabaseInterface::checkUserPassword(Server_Prot
...
@@ -95,7 +95,7 @@ AuthenticationResult Servatrice_DatabaseInterface::checkUserPassword(Server_Prot
case
Servatrice
::
AuthenticationNone
:
return
UnknownUser
;
case
Servatrice
::
AuthenticationNone
:
return
UnknownUser
;
case
Servatrice
::
AuthenticationPassword
:
{
case
Servatrice
::
AuthenticationPassword
:
{
QString
configPassword
=
settingsCache
->
value
(
"authentication/password"
).
toString
();
QString
configPassword
=
settingsCache
->
value
(
"authentication/password"
).
toString
();
if
(
configPassword
==
password
)
if
(
configPassword
==
password
)
return
PasswordRight
;
return
PasswordRight
;
return
NotLoggedIn
;
return
NotLoggedIn
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment