]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/store/mysql/mysql_store.cpp
Add creditExpire setting/getting via sgconf
[stg.git] / projects / stargazer / plugins / store / mysql / mysql_store.cpp
index fefadd5cb803b4b734303fd78b9541fb705d7a80..f62a846f723988ff721b5b23ceb42f1aba5ffd53 100644 (file)
@@ -711,6 +711,13 @@ if (!(res=mysql_store_result(sock)))
     return -1;
 }
 
+if (mysql_num_rows(res) != 1)
+{
+    errorStr = "User not found";
+    mysql_close(sock);
+    return -1;
+}
+
 row = mysql_fetch_row(res);
 
 string param;