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
091a2ed6
Commit
091a2ed6
authored
Apr 06, 2011
by
Max-Wilhelm Bruker
Browse files
server version bump; hashed password transmission; updated servatrice.sql
parent
42ad9592
Changes
3
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/remoteclient.cpp
View file @
091a2ed6
#include
<QTimer>
#include
<QXmlStreamReader>
#include
<QXmlStreamWriter>
#include
<QCryptographicHash>
#include
"remoteclient.h"
#include
"protocol.h"
#include
"protocol_items.h"
...
...
@@ -87,7 +88,7 @@ void RemoteClient::readData()
connect
(
topLevelItem
,
SIGNAL
(
protocolItemReceived
(
ProtocolItem
*
)),
this
,
SLOT
(
processProtocolItem
(
ProtocolItem
*
)));
setStatus
(
StatusLoggingIn
);
Command_Login
*
cmdLogin
=
new
Command_Login
(
userName
,
password
);
Command_Login
*
cmdLogin
=
new
Command_Login
(
userName
,
QCryptographicHash
::
hash
(
password
.
toUtf8
(),
QCryptographicHash
::
Sha1
).
toBase64
()
);
connect
(
cmdLogin
,
SIGNAL
(
finished
(
ProtocolResponse
*
)),
this
,
SLOT
(
loginResponse
(
ProtocolResponse
*
)));
sendCommand
(
cmdLogin
);
}
...
...
servatrice/servatrice.sql
View file @
091a2ed6
...
...
@@ -117,6 +117,7 @@ CREATE TABLE IF NOT EXISTS `cockatrice_users` (
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
latin1
AUTO_INCREMENT
=
915
;
CREATE
TABLE
`cockatrice_uptime`
(
`id_server`
tinyint
(
3
)
NOT
NULL
,
`timest`
datetime
NOT
NULL
DEFAULT
'0000-00-00 00:00:00'
,
`uptime`
int
(
11
)
DEFAULT
NULL
,
`users_count`
int
(
11
)
DEFAULT
NULL
,
...
...
servatrice/src/servatrice.cpp
View file @
091a2ed6
...
...
@@ -366,4 +366,4 @@ void Servatrice::statusUpdate()
execSqlQuery
(
query
);
}
const
QString
Servatrice
::
versionString
=
"Servatrice 0.20110
303
"
;
const
QString
Servatrice
::
versionString
=
"Servatrice 0.20110
406
"
;
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