π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
copy change
Neeraj Guptac32e4be8be7e
diff --git a/server/pkg/controller/user/user.go b/server/pkg/controller/user/user.goindex f0bd13f1ce..167e3e5a32 100644--- a/server/pkg/controller/user/user.go+++ b/server/pkg/controller/user/user.go@@ -301,7 +301,6 @@ func (c *UserController) NotifyAccountDeletion(userID int64, userEmail string, itemplateData := make(map[string]interface{})templateData["AccountRecoveryLink"] = fmt.Sprintf("%s/users/recover-account?token=%s", "https://api.ente.io", recoverToken)- logrus.Info("account recovery link: ", templateData["AccountRecoveryLink"])err := email.SendTemplatedEmail([]string{userEmail}, "ente", "[email protected]",AccountDeletedEmailSubject, template, templateData, nil)if err != nil {@@ -336,11 +335,11 @@ func (c *UserController) HandleAccountRecovery(ctx *gin.Context, req ente.Recove"email": req.EmailID,"userID": req.UserID,})- logger.Info("recover account request")+ logger.Info("initiating account recovery")_, err := c.UserRepo.Get(req.UserID)if err == nil {return stacktrace.Propagate(ente.NewBadRequestError(&ente.ApiErrorParams{- Message: "Either account already recovered or User ID is linked to an active account account",+ Message: "account is already recovered or userID is linked to another active account",}), "")}if !errors.Is(err, ente.ErrUserDeleted) {