public void updatePassword(RemoteUser rUser) {//change user password this.connect(); SqlCeCommand cmd = this.conn.CreateCommand(); DateTime currentTime = DateTime.Now; cmd.CommandText = "update " + TABLE_NAME + " set password='******',status='',modified_date='" + currentTime.ToString() + "' where username='******' and system='" + rUser.getSystemName() + "'"; cmd.ExecuteNonQuery(); this.disconnect(); }
public void addUser(RemoteUser rUser) { //add new user this.connect(); SqlCeCommand cmd = this.conn.CreateCommand(); DateTime currentTime = DateTime.Now; cmd.CommandText = "insert into " + TABLE_NAME + "(system,username,password,modified_date,status) values('" + rUser.getSystemName() + "','" + rUser.getUsername() + "','" + rUser.getPassword() + "','" + currentTime.ToString() + "','" + rUser.getStatus() + "')"; cmd.ExecuteNonQuery(); this.disconnect(); }
public void addUser(RemoteUser rUser) {//add new user this.connect(); SqlCeCommand cmd = this.conn.CreateCommand(); DateTime currentTime = DateTime.Now; cmd.CommandText = "insert into " + TABLE_NAME + "(system,username,password,modified_date,status) values('" + rUser.getSystemName() + "','" + rUser.getUsername() + "','" + rUser.getPassword() + "','" + currentTime.ToString() + "','" + rUser.getStatus() + "')"; cmd.ExecuteNonQuery(); this.disconnect(); }
public void updatePassword(RemoteUser rUser) { //change user password this.connect(); SqlCeCommand cmd = this.conn.CreateCommand(); DateTime currentTime = DateTime.Now; cmd.CommandText = "update " + TABLE_NAME + " set password='******',status='',modified_date='" + currentTime.ToString() + "' where username='******' and system='" + rUser.getSystemName() + "'"; cmd.ExecuteNonQuery(); this.disconnect(); }