18 lines
345 B
Go
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)
|
|
} |