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"
},