From 85565b4b3235b9afa009ac1c52e034fc4c006582 Mon Sep 17 00:00:00 2001 From: Christian Wieninger Date: Sun, 6 May 2007 11:07:38 +0000 Subject: - admin password is now stored as : in live.AdminPasswordMD5 (default password keeps 'live', so please re-edit your password via OSD) - new function MD5Hash in tools - changed epgsearch to use MD5Hash of tools --- setup.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'setup.h') diff --git a/setup.h b/setup.h index ef869c6..535585f 100644 --- a/setup.h +++ b/setup.h @@ -29,12 +29,13 @@ public: int GetLastChannel() const { return m_lastChannel == 0 ? std::numeric_limits< int >::max() : m_lastChannel; } int GetScreenshotInterval() const { return m_screenshotInterval; } std::string GetAdminLogin() const { return m_adminLogin; } - std::string GetAdminPassword() const { return m_adminPassword; } + std::string GetMD5HashAdminPassword() const; + int GetAdminPasswordLength() const; bool UseAuth() const { return m_useAuth; } void SetLastChannel(int lastChannel) { m_lastChannel = lastChannel; } void SetAdminLogin(std::string login) { m_adminLogin = login; } - void SetAdminPassword(std::string password) { m_adminPassword = password; } + std::string SetAdminPassword(std::string password); void SetUseAuth(int auth) { m_useAuth = auth; } void SetScrenshotInterval(int interval) { m_screenshotInterval = interval; } @@ -57,7 +58,7 @@ private: int m_useAuth; std::string m_adminLogin; - std::string m_adminPassword; + std::string m_adminPasswordMD5; bool CheckServerPort(); bool CheckServerIps(); -- cgit v1.2.3