simple-login-register

command module
v0.0.0-...-7070607 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

README

Simple-login-api

Simple login register api with refrance

Routes

  • app.Post("/api/register", controllers.Register)
  • app.Post("/api/login", controllers.Login)
  • app.Get("/api/user", controllers.User)
  • app.Post("/api/logout", controllers.Logout)
  • app.Post("/api/change", controllers.ChangePassword)
  • app.Post("/api/send", controllers.SendPoint)
  • app.Get("/api/point", controllers.Point)
  • app.Get("/api/:market/:withdraw", controllers.Market)
  • app.Get("/api/upgrade", controllers.Upgrade)
  • app.Get("/api/most", controllers.MostUser)
  • app.Post("/api/check", controllers.EmailVerification)
  • app.Post("/api/setcheck", controllers.CheckEmailVerification)
  • app.Post("/api/forget", controllers.ForgetPassword)
  • app.Post("/api/setforget", controllers.ForgetChange)

Doc

#Register

enter image description here

Params : { "name":"username", "email":"nikiyi5673@nhmty.com", "password":"12345678", "referance":"username" //choice }

#Email verification code send

enter image description here enter image description here

Params : { "email":"nikiyi5673@nhmty.com" }

#Check email verification code

enter image description here

Params : {

"email":"nikiyi5673@nhmty.com", "code":"YourCode" }

#Login

enter image description here

Params :

{ "email":"nikiyi5673@nhmty.com", "password":"12345678" }

#User

//Return user info

enter image description here

#Point

Get 2 point

enter image description here

#Market

Buy item and send notification to email

enter image description here

#Send

Send point to user

enter image description here

Params : { "receiver":"receiver name", "sendingPoints":"1" }

#Change Password

enter image description here

Params : { "oldPassword":"12345678", "newPassword":"abcde123321" }

#Logout

enter image description here

#Check Upgrade

Check upgrade from settings.ini

enter image description here

#Most Point Users

List of most points users

enter image description here

#Send Forget Password Link

enter image description here

Params : { "email":"nikiyi5673@nhmty.com" }

enter image description here

#Check Forget Password Link

enter image description here

Params : {

"token":"comming token from url params", "newPassword":"new Password"

}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL