Finish remove user implementation
This commit is contained in:
@@ -97,3 +97,10 @@ void msql_acces::create_user(std::string user, std::string pass, bool admin){
|
||||
pstmt->setBoolean(3,admin);
|
||||
sql::ResultSet *res = pstmt->executeQuery();
|
||||
}
|
||||
|
||||
void msql_acces::remove_user(std::string user){
|
||||
sql::PreparedStatement *pstmt =
|
||||
con->prepareStatement("delete from users where username=?");
|
||||
pstmt->setString(1,user);
|
||||
pstmt->executeUpdate();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user