mirror of
https://github.com/hrfee/jfa-go.git
synced 2026-01-18 16:47:42 +01:00
make checkInvite check only one invite, invite daemon
checkInvite no longer loops over all invites and checks for expiry, that functionality has moved to checkInvites. Couple more rogue print statements removed aswell.
This commit is contained in:
3
auth.go
3
auth.go
@@ -16,9 +16,6 @@ func (ctx *appContext) webAuth() gin.HandlerFunc {
|
||||
}
|
||||
|
||||
func (ctx *appContext) authenticate(gc *gin.Context) {
|
||||
for _, val := range ctx.users {
|
||||
fmt.Println("userid", val.UserID)
|
||||
}
|
||||
header := strings.SplitN(gc.Request.Header.Get("Authorization"), " ", 2)
|
||||
if header[0] != "Basic" {
|
||||
ctx.debug.Println("Invalid authentication header")
|
||||
|
||||
Reference in New Issue
Block a user