mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #3689] [MERGED] HBE-343 hotfix: improve smtp email validation and fix enableAndDisableSSO mutation #4491
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4491
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/3689
Author: @mirarifhasan
Created: 12/22/2023
Status: ✅ Merged
Merged: 12/22/2023
Merged by: @AndrewBastin
Base:
2023.12.1← Head:hotfix/server-config-enabling📝 Commits (7)
8abae01fix: added a database call find in infra_config for isServiceConfigured func9102984feat: add smtp email validation8299d4ffeat: add validation in adding providers61a5f60chore: feedback resolve920867cchore: move code block to separate function9e312e0chore: added link to nodemailer docsc157db0chore: removed regex's outside validateSMTPEmail function📊 Changes
5 files changed (+123 additions, -24 deletions)
View changed files
📝
packages/hoppscotch-backend/src/errors.ts(+7 -0)📝
packages/hoppscotch-backend/src/infra-config/helper.ts(+62 -0)📝
packages/hoppscotch-backend/src/infra-config/infra-config.service.ts(+30 -23)📝
packages/hoppscotch-backend/src/main.ts(+2 -1)📝
packages/hoppscotch-backend/src/utils.ts(+22 -0)📄 Description
Closes HBE-343
Description
This PR fixed the following issues in
hoppscotch-backendpackageImprove SMTP email validation by allowing a total of 3 formats that the nodemailer npm package allows. https://nodemailer.com/message/addresses.
This error encountered when
updateInfraConfigsmutation called.To resolve error on
enableAndDisableSSOmutation, introduced Database callfindMany()instead ofconfigService.get()to get latest dataCurrent Problem
The npm Nodemailer package has 3 acceptable formats where
hoppscotch-backendpreviously accepts only email asMAILER_ADDRESS_FROM.enableAndDisableSSOmutation called, is checksisServiceConfiguredwith old data fromconfigServiceinstead of new data from database.Testing Instruction
updateInfraConfigsmutation to updateMAILER_ADDRESS_FROMenableAndDisableSSOmutationChecks
Additional Information
Nil
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.