@@ 518,6 518,7 @@ func (s *Service) ForgotPasswordConfPOST(c echo.Context) error {
return err
}
+ c.Set("user", user)
if err := s.fetch.ProcessSuccessfulPasswordReset(c); err != nil {
return err
}
@@ 581,6 582,7 @@ func (s *Service) ConfirmEmailConf(c echo.Context) error {
return err
}
+ c.Set("user", user)
if err := s.fetch.ProcessSuccessfulEmailConfirmation(c); err != nil {
return err
}
@@ 743,7 745,7 @@ func (s *Service) UpdateEmailConf(c echo.Context) error {
}
// Everything good, load user for verification
- _, err = s.fetch.FromDB(gctx.Server.DB, conf.UserID, false)
+ user, err := s.fetch.FromDB(gctx.Server.DB, conf.UserID, false)
if err != nil {
if err == sql.ErrNoRows {
// Should never be reached
@@ 772,6 774,7 @@ func (s *Service) UpdateEmailConf(c echo.Context) error {
return err
}
+ c.Set("user", user)
if err := s.fetch.ProcessSuccessfulEmailUpdate(c); err != nil {
return err
}