Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1.  
  2. string agivenpassword;
  3.  
  4. if agivenpassword is all numbers like "123" it fails with a cannot convert data SOCI exception.
  5.  
  6. if it has letters, it works fine.
  7.  
  8. *m_pSQLConnection << "SELECT 'accountID', 'banned', 'accessLevel' FROM account_data WHERE username = :username AND password = MD5(MD5(salt)|| MD5(:password))",
  9. into(aid), into(banned), into(accesslvl), use(username), use(agivenpassword);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement