From a604b24962cbf96e79dafc0c74f9f79bde643c36 Mon Sep 17 00:00:00 2001 From: randomdan Date: Fri, 12 Aug 2011 19:31:11 +0000 Subject: Don't use parameters in sqlCheck anymore... just like sqlTask yesterday --- gentoobrowse/request/doconfirm.xml | 5 +---- gentoobrowse/request/dologin.xml | 13 +++---------- gentoobrowse/request/dosignup.xml | 10 ++-------- gentoobrowse/request/track.xml | 8 ++------ 4 files changed, 8 insertions(+), 28 deletions(-) diff --git a/gentoobrowse/request/doconfirm.xml b/gentoobrowse/request/doconfirm.xml index 6b8eed8..a811408 100644 --- a/gentoobrowse/request/doconfirm.xml +++ b/gentoobrowse/request/doconfirm.xml @@ -7,11 +7,8 @@ SELECT COUNT(*) FROM users - WHERE verifyguid = ? + WHERE verifyguid = - - - diff --git a/gentoobrowse/request/dologin.xml b/gentoobrowse/request/dologin.xml index 1194bab..34466eb 100644 --- a/gentoobrowse/request/dologin.xml +++ b/gentoobrowse/request/dologin.xml @@ -15,25 +15,18 @@ SELECT COUNT(*) FROM users - WHERE username = ? - AND userpassword = ? + WHERE username = + AND userpassword = - - - - Confirmation code required SELECT COUNT(*) FROM users - WHERE username = ? + WHERE username = AND verifyguid IS NULL - - - diff --git a/gentoobrowse/request/dosignup.xml b/gentoobrowse/request/dosignup.xml index 7b515f9..e59304a 100644 --- a/gentoobrowse/request/dosignup.xml +++ b/gentoobrowse/request/dosignup.xml @@ -14,22 +14,16 @@ SELECT COUNT(*) FROM users - WHERE username = ? + WHERE username = - - - Email address already used SELECT COUNT(*) FROM users - WHERE useremail = ? + WHERE useremail = - - - INSERT INTO users(username, userrealname, userpassword, useremail, verifyguid) diff --git a/gentoobrowse/request/track.xml b/gentoobrowse/request/track.xml index 41eb328..204bc03 100644 --- a/gentoobrowse/request/track.xml +++ b/gentoobrowse/request/track.xml @@ -5,13 +5,9 @@ SELECT COUNT(*) FROM user_packages - WHERE packageid = ? - AND userid = ? + WHERE packageid = + AND userid = - - - - INSERT INTO user_packages(packageid, userid, trackedsince) VALUES( -- cgit v1.2.3