Lorsque que je cree un compte toujours avec le meme logiciel en vb celui ci marche nikel c le UPDATE qui pose soucis
Code :
Citation : Dim cmd As New MySqlCommand
cmd = New MySqlCommand("update account set sha_pass_hash = (SHA1(CONCAT(UPPER(" & TextEdit5.Text & "),':',UPPER(" & TextEdit12.Text & ")))), username = '" & TextEdit5.Text & "', gmlevel ='" + TextEdit9.Text + "', locked='" + loked + "', email='" + TextEdit8.Text + "', expansion='" + expansion + "' where id='" + TextEdit4.Text + "'", conn)
Comme je dis tous marches tous les changements dans la requete sauf le mot de passe il marche sur le site dans la db il est bien changer mais dans wow sa me demande toujours l'ancien donc celui de la création.
C'est bizzard quand même.
J'avais penser à une requete a part genre
DELETE sha_pass_hash from account WHERE id = ....
Dim query As String = "insert into account(id, sha_pass_hash,) values('" + TextEdit4.Text + "',(SHA1(CONCAT(UPPER('" & TextEdit5.Text & "'),':',UPPER('" & TextEdit12.Text & "')))) ) "
Merci.
apres ce genre de requete je c pas si sa fonctionne en tous merci d'avance.
Édition :
Bon ben j'ai trouver un simple replace dans une requete a part :
Dim query As String = "replace into account(id, username, sha_pass_hash, gmlevel, email, expansion, locked) values('" + TextEdit4.Text + "','" + TextEdit5.Text + "',(SHA1(CONCAT(UPPER('" & TextEdit5.Text & "'),':',UPPER('" & TextEdit1.Text & "')))) , '" & TextEdit9.Text & "', '" & TextEdit8.Text & "','" & expansion & "','" & loked & "') "
Dim cmd1 As New MySqlCommand(query, conn)
Sa marche nikel.