Added comments
This commit is contained in:
parent
909aaa99e7
commit
f3c79dcebf
@ -7,6 +7,7 @@ import (
|
|||||||
"golang.org/x/crypto/bcrypt"
|
"golang.org/x/crypto/bcrypt"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Login to an account
|
||||||
func Login(ctx *context.Context) {
|
func Login(ctx *context.Context) {
|
||||||
// Store body
|
// Store body
|
||||||
var body *v1.Register
|
var body *v1.Register
|
||||||
|
@ -7,6 +7,7 @@ import (
|
|||||||
"golang.org/x/crypto/bcrypt"
|
"golang.org/x/crypto/bcrypt"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Register an account
|
||||||
func Register(ctx *context.Context) {
|
func Register(ctx *context.Context) {
|
||||||
// Check if registration is disabled
|
// Check if registration is disabled
|
||||||
if ctx.Config.Auth.Register {
|
if ctx.Config.Auth.Register {
|
||||||
|
Loading…
Reference in New Issue
Block a user