π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Tighten Space session reset after password updates
Neeraj Guptad7bbf70ce7eb
diff --git a/server/pkg/controller/user/srp.go b/server/pkg/controller/user/srp.goindex 52a231d4c4..0f0aaf9dda 100644--- a/server/pkg/controller/user/srp.go+++ b/server/pkg/controller/user/srp.go@@ -79,11 +79,6 @@ func (c *UserController) UpdateSrpAndKeyAttributes(context *gin.Context,if err != nil {return nil, err}- if shouldClearTokens {- if err = c.SpaceAccessResetter.RevokeBrowserSessions(context, userID); err != nil {- return nil, err- }- }err = c.UserAuthRepo.InsertOrUpdateSRPAuthAndKeyAttr(context, userID, req, setup)if err != nil {return nil, stacktrace.Propagate(err, "failed to add entry in srp auth")@@ -95,8 +90,10 @@ func (c *UserController) UpdateSrpAndKeyAttributes(context *gin.Context,if err != nil {return nil, err}- if sweepErr := c.SpaceAccessResetter.RevokeBrowserSessions(context, userID); sweepErr != nil {- logrus.WithError(sweepErr).WithField("user_id", userID).Warn("failed to sweep space browser sessions after password update")+ if c.SpaceAccessResetter != nil {+ if sweepErr := c.SpaceAccessResetter.RevokeBrowserSessions(context, userID); sweepErr != nil {+ logrus.WithError(sweepErr).WithField("user_id", userID).Warn("failed to sweep space browser sessions after password update")+ }}} else {logrus.WithField("user_id", userID).Info("not clearing tokens")