You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (m_db->executeSelectQuery("USERS", (QStringList() << "USERNAME" << "PASSWORD"), QString("where USERNAME like '%1' and PASSWORD like '%2'").arg(m_db->toHex(username)).arg(m_db->toHex(m_db->sha512(password)))).count() > 0) {
17
-
loggedIn = true;
18
-
19
-
20
-
//populate permissions, descriptions, etc on a per user basis
21
-
// this will allow for future extending of the code if the need
22
-
// arises to have language support etc then the descriptions can
23
-
// be populated based on the selected language or the descriptions
24
-
// can be more specific for administrators than for operators etc
25
-
// it wastes about 2kb of total memory to store and is only requested
if (m_db->executeSelectQuery("USERS", (QStringList() << "USERNAME" << "PASSWORD"), QString("where USERNAME like '%1' and PASSWORD like '%2'").arg(m_db->toHex(username)).arg(m_db->toHex(m_db->sha512(password)))).count() > 0) {
20
+
loggedIn = true;
21
+
22
+
23
+
//populate permissions, descriptions, etc on a per user basis
24
+
// this will allow for future extending of the code if the need
25
+
// arises to have language support etc then the descriptions can
26
+
// be populated based on the selected language or the descriptions
27
+
// can be more specific for administrators than for operators etc
28
+
// it wastes about 2kb of total memory to store and is only requested
0 commit comments