Added remember option to password dialog.
Made to remember password of password manager for given time but not completely sure how to implement that yet.
This commit is contained in:
parent
f432c2aa68
commit
287073afdc
4 changed files with 42 additions and 11 deletions
|
|
@ -188,14 +188,8 @@ bool MasterController::UnlockPasswordManagerIfNeeded()
|
|||
bool ok = (exec_result == QDialog::Accepted);
|
||||
|
||||
// IF user gave OK
|
||||
if (ok) {
|
||||
if (m_passwordManager->openDatabase(m_userConfigDatabase, dlg->password())) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
if (ok && m_passwordManager->openDatabase(m_userConfigDatabase, dlg->password()))
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
@ -209,9 +203,8 @@ bool MasterController::UnlockPasswordManagerIfNeeded()
|
|||
int exec_result = dlg->exec();
|
||||
if (exec_result == QDialog::Accepted) {
|
||||
QString passphrase = dlg->password();
|
||||
if (m_passwordManager->createDatabase(m_userConfigDatabase, passphrase)) {
|
||||
if (m_passwordManager->createDatabase(m_userConfigDatabase, passphrase))
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue