From dd1a3458680d839b406a1f014884cd6b3c867d80 Mon Sep 17 00:00:00 2001 From: Peter Sanchez Date: Thu, 8 Sep 2022 17:59:21 -0600 Subject: [PATCH] Reverting 505272b902ba - what in the world was I thinking? --- accounts/routes.go | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/accounts/routes.go b/accounts/routes.go index 0902c6c..bfa7121 100644 --- a/accounts/routes.go +++ b/accounts/routes.go @@ -517,25 +517,6 @@ func (s *Service) ForgotPasswordConfPOST(c echo.Context) error { return err } - if !user.IsVerified() { - // To be here they had to have verified the email. - ctx := database.Context(c.Request().Context(), gctx.Server.DB) - if err := database.WithTx(ctx, nil, func(tx *sql.Tx) error { - // Null any current pending email changes - _, err := tx.ExecContext(ctx, ` - UPDATE "users" - SET is_verified=true - WHERE id=$1`, - user.GetID()) - if err != nil { - return err - } - return nil - }); err != nil { - return err - } - } - if err := s.fetch.ProcessSuccessfulPasswordReset(c); err != nil { return err } -- 2.45.2