mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-15 10:54:22 -05:00
add error info when gpg password is wrong
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2261 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
fba2a3afae
commit
9262feac1c
@ -1023,9 +1023,9 @@ bool p3Peers::signGPGCertificate(std::string id)
|
||||
std::cerr << std::endl;
|
||||
#endif
|
||||
|
||||
AuthGPG::getAuthGPG()->SignCertificateLevel0(id);
|
||||
|
||||
AuthGPG::getAuthGPG()->setAcceptToConnectGPGCertificate(id, true);
|
||||
return true;
|
||||
return AuthGPG::getAuthGPG()->SignCertificateLevel0(id);
|
||||
}
|
||||
|
||||
bool p3Peers::setAcceptToConnectGPGCertificate(std::string gpg_id, bool acceptance)
|
||||
|
@ -162,8 +162,8 @@ void StartDialog::loadCertificates()
|
||||
{
|
||||
/* some error msg */
|
||||
QMessageBox::StandardButton sb = QMessageBox::warning ( NULL,
|
||||
"Login Failure",
|
||||
"*** Wrong Password ***",
|
||||
tr("Login Failure"),
|
||||
tr("Maybe password is wrong"),
|
||||
QMessageBox::Ok);
|
||||
}
|
||||
}
|
||||
@ -174,8 +174,8 @@ void StartDialog::on_labelProfile_linkActivated(QString link)
|
||||
//gencertdialog->show();
|
||||
|
||||
QMessageBox::StandardButton sb = QMessageBox::question ( NULL,
|
||||
"Create a New Profil",
|
||||
"This will generate a new Profile\n Are you sure you want to continue",
|
||||
tr("Create a New Profil"),
|
||||
tr("This will generate a new Profile\n Are you sure you want to continue"),
|
||||
(QMessageBox::Ok | QMessageBox::No));
|
||||
|
||||
if (sb == QMessageBox::Ok)
|
||||
|
@ -340,7 +340,12 @@ void ConfCertDialog::denyFriend() {
|
||||
|
||||
void ConfCertDialog::signGPGKey() {
|
||||
std::string gpg_id = rsPeers->getGPGId(mId);
|
||||
rsPeers->signGPGCertificate(gpg_id);
|
||||
if (!rsPeers->signGPGCertificate(gpg_id)) {
|
||||
QMessageBox::StandardButton sb = QMessageBox::warning ( NULL,
|
||||
tr("Signature Failure"),
|
||||
tr("Maybe password is wrong"),
|
||||
QMessageBox::Ok);
|
||||
}
|
||||
loadDialog();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user