Skip to content

0xberkay/simple-login-register

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

}

About

Simple login register api with referance and email verifity

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages