mirror of
https://github.com/Qsgs-Fans/FreeKill.git
synced 2024-11-16 11:42:45 +08:00
修复换服时报密码错bug
This commit is contained in:
parent
76c9b02623
commit
5946f6d1cf
|
@ -125,7 +125,7 @@
|
|||
</message>
|
||||
<message>
|
||||
<source>help: unknown password error</source>
|
||||
<translation>提示:请使用“编辑服务器”删除该服务器,然后重新添加服务器并重新输入用户名和密码;若为单机启动则在“加入服务器”中选中服务器127.0.0.1,编辑服务器->删除,然后再单机启动</translation>
|
||||
<translation>提示:请重启程序</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>help: you have been banned!</source>
|
||||
|
@ -141,7 +141,7 @@
|
|||
</message>
|
||||
<message>
|
||||
<source>help: username or password error</source>
|
||||
<translation>提示:可能该用户名已被占用,或者密码错误,如果你是初次注册的话考虑用另一个用户名密码进行登入;若为单机启动则在“加入服务器”中选中服务器127.0.0.1,编辑服务器->删除,然后再单机启动</translation>
|
||||
<translation>提示:可能该用户名已被占用,或者密码错误,如果你是初次注册的话考虑用另一个用户名密码进行登入</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>help: md5 fail</source>
|
||||
|
@ -348,7 +348,7 @@
|
|||
</message>
|
||||
<message>
|
||||
<source>unknown password error</source>
|
||||
<translation>服务端解密密码时出现未知错误</translation>
|
||||
<translation>未知登录错误</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>user name not in whitelist</source>
|
||||
|
|
|
@ -350,7 +350,8 @@ QString QmlBackend::pubEncrypt(const QString &key, const QString &data) {
|
|||
// AES密钥和IV都是固定16字节的,所以可以放在开头
|
||||
auto key_bytes = key.toLatin1();
|
||||
BIO *keyio = BIO_new_mem_buf(key_bytes.constData(), -1);
|
||||
PEM_read_bio_RSAPublicKey(keyio, &rsa, NULL, NULL);
|
||||
RSA_free(rsa);
|
||||
rsa = PEM_read_bio_RSAPublicKey(keyio, NULL, NULL, NULL);
|
||||
BIO_free_all(keyio);
|
||||
|
||||
auto data_bytes = data.toUtf8();
|
||||
|
|
Loading…
Reference in New Issue
Block a user