Authorization-Template

command module
v0.0.0-...-574c6f2 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2020 License: BSD-3-Clause Imports: 1 Imported by: 0

README

Authorization-Template

This is a module for authorization powered by Xieyuschen,PivotStudio. We support login,register with verify code,signup,forgetPasssword and changePassword api for you which means you can use it in your own project conveniently and avoid to implement a auth module.

How to use it

go get -u "github.com/Pivot-Studio/Authorization-Template"

And then the apis are stored in pkg/ATrouter/router.go as package ATrouter.

  • Because we use mysql,you need to add a Config.json like this:
  "DbSettings":{
    "Username":"root",
    "Password" :"root",
    "Hostname" :"127.0.0.1:3306",
    "Dbname" :"Your database name"
  },
  "EmailSenderSettings":{
    "email":"email account",
    "password":"Smtp server token",
    "servername":"smtp.163.com:465"
  },

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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