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
22af789c
Commit
22af789c
authored
Oct 07, 2014
by
Fabio Bas
Browse files
Servatrice: log to console authentication method on startup
parent
15555c16
Changes
1
Hide whitespace changes
Inline
Side-by-side
servatrice/src/servatrice.cpp
View file @
22af789c
...
...
@@ -140,14 +140,18 @@ bool Servatrice::initServer()
const
QString
authenticationMethodStr
=
settingsCache
->
value
(
"authentication/method"
).
toString
();
if
(
authenticationMethodStr
==
"sql"
)
{
qDebug
()
<<
"Authenticating method: sql"
;
authenticationMethod
=
AuthenticationSql
;
}
else
if
(
authenticationMethodStr
==
"password"
)
{
qDebug
()
<<
"Authenticating method: password"
;
authenticationMethod
=
AuthenticationPassword
;
}
else
{
if
(
regServerOnly
)
{
qDebug
()
<<
"Registration only server enabled but no authentication method defined: Error."
;
return
false
;
}
qDebug
()
<<
"Authenticating method: none"
;
authenticationMethod
=
AuthenticationNone
;
}
...
...
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