Fix missing session auth info
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -290,7 +290,10 @@ 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,
|
||||||
Data: coredata.SessionData{},
|
Data: coredata.SessionData{
|
||||||
|
PasswordAuthenticated: true,
|
||||||
|
SAMLAuthenticatedOrgs: make(map[string]coredata.SAMLAuthInfo),
|
||||||
|
},
|
||||||
ExpiredAt: now.Add(24 * time.Hour * 7), // 7 days,
|
ExpiredAt: now.Add(24 * time.Hour * 7), // 7 days,
|
||||||
CreatedAt: now,
|
CreatedAt: now,
|
||||||
UpdatedAt: now,
|
UpdatedAt: now,
|
||||||
@@ -917,7 +920,10 @@ func (s Service) SignupFromInvitation(
|
|||||||
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,
|
||||||
Data: coredata.SessionData{},
|
Data: coredata.SessionData{
|
||||||
|
PasswordAuthenticated: true,
|
||||||
|
SAMLAuthenticatedOrgs: make(map[string]coredata.SAMLAuthInfo),
|
||||||
|
},
|
||||||
ExpiredAt: now.Add(24 * time.Hour * 7),
|
ExpiredAt: now.Add(24 * time.Hour * 7),
|
||||||
CreatedAt: now,
|
CreatedAt: now,
|
||||||
UpdatedAt: now,
|
UpdatedAt: now,
|
||||||
|
|||||||
Reference in New Issue
Block a user