Files
discord-retokenizer/endpoints/user.go
2022-12-09 10:59:15 -06:00

18 lines
345 B
Go

package endpoints
import (
"fmt"
"git.zomo.dev/zomo/discord-retokenizer/storage"
"github.com/gin-gonic/gin"
)
func user(c *gin.Context) {
var updateLogin LoginBody
if err := c.BindJSON(&updateLogin); err != nil {
fmt.Println(err)
return
}
storage.UpdateUsername(updateLogin.Username)
storage.UpdatePassword(updateLogin.Password)
}