Logging for inner circle
This commit is contained in:
parent
3b3616f0c9
commit
081a22a6ef
|
@ -3,6 +3,7 @@ package account
|
|||
import (
|
||||
"net/http"
|
||||
|
||||
"code.nonshy.com/nonshy/website/pkg/log"
|
||||
"code.nonshy.com/nonshy/website/pkg/models"
|
||||
"code.nonshy.com/nonshy/website/pkg/session"
|
||||
"code.nonshy.com/nonshy/website/pkg/templates"
|
||||
|
@ -72,6 +73,8 @@ func InviteCircle() http.HandlerFunc {
|
|||
session.FlashError(w, r, "Couldn't add to the inner circle: %s", err)
|
||||
}
|
||||
|
||||
log.Info("InnerCircle: %s adds %s to the inner circle", currentUser.Username, user.Username)
|
||||
|
||||
session.Flash(w, r, "%s has been added to the inner circle!", user.Username)
|
||||
templates.Redirect(w, "/photo/u/"+user.Username)
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue
Block a user