added storing password in a secure way
This commit is contained in:
+10
-4
@@ -5,7 +5,12 @@
|
||||
#include <qt5keychain/keychain.h>
|
||||
#include <qt5keychain/qkeychain_export.h>
|
||||
|
||||
class Password : QObject
|
||||
extern QApplication a;
|
||||
|
||||
void setPassword(QString account, QString pass);
|
||||
QString getPassword(const QString& name);
|
||||
|
||||
/*class Password : QObject
|
||||
{
|
||||
public:
|
||||
QString appName;
|
||||
@@ -13,6 +18,7 @@ class Password : QObject
|
||||
QKeychain::ReadPasswordJob * readPass;
|
||||
MainWindow * mw;
|
||||
QString password;
|
||||
QSettings passwdSettings{a.applicationName(),a.applicationName()};
|
||||
|
||||
Password();
|
||||
~Password();
|
||||
@@ -22,8 +28,8 @@ class Password : QObject
|
||||
bool remove(QString);
|
||||
|
||||
private slots:
|
||||
void finished(QKeychain::Job*);
|
||||
void readReturn();
|
||||
};
|
||||
void storeFinished();
|
||||
void readFinished();
|
||||
};*/
|
||||
|
||||
#endif // PASSWORD_H
|
||||
|
||||
Reference in New Issue
Block a user