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
Params : { "name":"username", "email":"nikiyi5673@nhmty.com", "password":"12345678", "referance":"username" //choice }
#Email verification code send
Params : { "email":"nikiyi5673@nhmty.com" }
#Check email verification code
Params : {
"email":"nikiyi5673@nhmty.com", "code":"YourCode" }
#Login
Params :
{ "email":"nikiyi5673@nhmty.com", "password":"12345678" }
#User
//Return user info
#Point
Get 2 point
#Market
Buy item and send notification to email
#Send
Send point to user
Params : { "receiver":"receiver name", "sendingPoints":"1" }
#Change Password
Params : { "oldPassword":"12345678", "newPassword":"abcde123321" }
#Logout
#Check Upgrade
Check upgrade from settings.ini
#Most Point Users
List of most points users
#Send Forget Password Link
Params : { "email":"nikiyi5673@nhmty.com" }
#Check Forget Password Link
Params : {
"token":"comming token from url params", "newPassword":"new Password"
}