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
6b8ca1e8
Commit
6b8ca1e8
authored
Aug 10, 2014
by
woogerboy21
Browse files
Cleaned up potential memory leak
parent
92ae596d
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/server.cpp
View file @
6b8ca1e8
...
...
@@ -132,8 +132,8 @@ AuthenticationResult Server::loginUser(Server_ProtocolHandler *session, QString
}
else
if
(
authState
==
UnknownUser
)
{
// Change user name so that no two users have the same names,
// don't interfere with registered user names though.
QSettings
*
settings
=
new
QS
ettings
(
"servatrice.ini"
,
QSettings
::
IniFormat
);
bool
requireReg
=
settings
->
value
(
"authentication/regonly"
,
0
).
toBool
();
QSettings
s
ettings
(
"servatrice.ini"
,
QSettings
::
IniFormat
);
bool
requireReg
=
settings
.
value
(
"authentication/regonly"
,
0
).
toBool
();
if
(
requireReg
)
{
qDebug
(
"Login denied: registration required"
);
databaseInterface
->
unlockSessionTables
();
...
...
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