Heavily improved sessions

This commit is contained in:
2017-06-17 22:19:26 +02:00
parent 340f4d1f9c
commit 15e2717ea8
5 changed files with 18 additions and 6 deletions

View File

@ -7,6 +7,10 @@ import (
// GetUser ...
func GetUser(ctx *aero.Context) *arn.User {
if !ctx.HasSession() {
return nil
}
userID := ctx.Session().GetString("userId")
if userID == "" {