tipe password bcrypt how to write login register source code golang
salt := "f8sda8asd765sadf58s7d6"
email := request.FormValue("email")
pass := request.FormValue("password")
sendpassword := []byte(pass + Salt)
err = bcrypt.CompareHashAndPassword(row.Password, sendpassword) //row.Password come from DB
if err != nil {
fmt.Println(err)
}
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.