mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-10 01:55:19 -04:00
Added support for Auto-login
- added checkbox in start dialog including warning (autologin not safe) - added check box in gen setting to disable autologin on shutdown git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2689 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
f38c060fb6
commit
6b8f62d8f0
8 changed files with 114 additions and 68 deletions
|
@ -55,7 +55,9 @@ StartDialog::StartDialog(QWidget *parent, Qt::WFlags flags)
|
|||
|
||||
ui.loadButton->setFocus();
|
||||
|
||||
|
||||
connect(ui.loadButton, SIGNAL(clicked()), this, SLOT(loadPerson()));
|
||||
connect(ui.autologin_checkbox, SIGNAL(clicked()), this, SLOT(notSecureWarning()));
|
||||
|
||||
/* load the Certificate File name */
|
||||
std::string userName;
|
||||
|
@ -154,7 +156,8 @@ void StartDialog::loadPerson()
|
|||
void StartDialog::loadCertificates()
|
||||
{
|
||||
/* Final stage of loading */
|
||||
if (RsInit::LoadCertificates(false))
|
||||
|
||||
if (RsInit::LoadCertificates(ui.autologin_checkbox->isChecked()))
|
||||
{
|
||||
close();
|
||||
}
|
||||
|
@ -168,13 +171,15 @@ void StartDialog::loadCertificates()
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void StartDialog::on_labelProfile_linkActivated(QString link)
|
||||
{
|
||||
//static GenCertDialog *gencertdialog = new GenCertDialog();
|
||||
//gencertdialog->show();
|
||||
|
||||
QMessageBox::StandardButton sb = QMessageBox::question ( NULL,
|
||||
tr("Create a New Profil"),
|
||||
tr("Create a New Profile"),
|
||||
tr("This will generate a new Profile\n Are you sure you want to continue"),
|
||||
(QMessageBox::Ok | QMessageBox::No));
|
||||
|
||||
|
@ -200,3 +205,15 @@ LogoBar & StartDialog::getLogoBar() const {
|
|||
return *_rsLogoBar;
|
||||
}
|
||||
|
||||
void StartDialog::notSecureWarning() {
|
||||
|
||||
/* some error msg */
|
||||
if(ui.autologin_checkbox->isChecked()){
|
||||
QMessageBox::StandardButton sb = QMessageBox::warning ( NULL,
|
||||
tr("Insecure"),
|
||||
tr("Auto Login is not Secure: Password stored on disk"),
|
||||
QMessageBox::Ok);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue