End user can now specify how long password manager remembers the master key.
Closes $24
This commit is contained in:
parent
d489f11e52
commit
7f88b98cdd
2 changed files with 31 additions and 3 deletions
|
|
@ -9,6 +9,7 @@ class ConnectionList;
|
|||
class ConnectionTreeModel;
|
||||
class ConnectionManagerWindow;
|
||||
class PasswordManager;
|
||||
class QTimer;
|
||||
|
||||
class ConnectionController : public QObject {
|
||||
Q_OBJECT
|
||||
|
|
@ -43,6 +44,7 @@ private:
|
|||
ConnectionList *m_connectionList = nullptr;
|
||||
ConnectionTreeModel *m_connectionTreeModel = nullptr;
|
||||
ConnectionManagerWindow *m_connectionManagerWindow = nullptr;
|
||||
QTimer *m_relockTimer = nullptr;
|
||||
|
||||
/** Using long lived object so it can remember its master password for sometime
|
||||
* if the user wishes it.
|
||||
|
|
@ -57,9 +59,15 @@ private:
|
|||
bool decodePassword(const std::string &password_id, const std::string &enc_password, std::string &password);
|
||||
bool encodePassword(const std::string &password_id, const std::string &password, std::string &enc_password);
|
||||
|
||||
///
|
||||
///
|
||||
/// \return bool: succeeded, int: relock timeout
|
||||
///
|
||||
bool UnlockPasswordManagerIfNeeded();
|
||||
|
||||
static std::string getPskId(const ConnectionConfig &cc);
|
||||
private slots:
|
||||
void relock();
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue