Fix signup session already expired
Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
@@ -136,6 +136,7 @@ func (s Service) SignUp(
|
|||||||
session := &coredata.Session{
|
session := &coredata.Session{
|
||||||
ID: gid.New(gid.NilTenant, coredata.SessionEntityType),
|
ID: gid.New(gid.NilTenant, coredata.SessionEntityType),
|
||||||
UserID: user.ID,
|
UserID: user.ID,
|
||||||
|
ExpiredAt: now.Add(24 * time.Hour),
|
||||||
CreatedAt: now,
|
CreatedAt: now,
|
||||||
UpdatedAt: now,
|
UpdatedAt: now,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user