mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 23:17:21 -06:00
- Store Web UI password as md5
This commit is contained in:
@@ -44,7 +44,8 @@ class HttpServer : public QTcpServer {
|
||||
Q_OBJECT
|
||||
|
||||
private:
|
||||
QByteArray base64;
|
||||
QByteArray username;
|
||||
QByteArray password_md5;
|
||||
Bittorrent *BTSession;
|
||||
EventManager *manager;
|
||||
QTimer *timer;
|
||||
@@ -52,7 +53,7 @@ class HttpServer : public QTcpServer {
|
||||
public:
|
||||
HttpServer(Bittorrent *BTSession, int msec, QObject* parent = 0);
|
||||
~HttpServer();
|
||||
void setAuthorization(QString username, QString password);
|
||||
void setAuthorization(QString username, QString password_md5);
|
||||
bool isAuthorized(QByteArray auth) const;
|
||||
EventManager *eventManager() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user