Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SSHOC
sshoc-marketplace-frontend
Commits
93360cf9
Commit
93360cf9
authored
Mar 17, 2021
by
Stefan Probst
Browse files
fix: fix honeypot
parent
df1212f3
Pipeline
#181638
passed with stage
in 5 minutes and 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/pages/api/contact.ts
View file @
93360cf9
...
...
@@ -33,8 +33,8 @@ export default async function contact(
}
/** honeypot field */
if
(
formSubmission
.
bot
!==
''
)
{
response
.
status
(
400
).
end
()
if
(
formSubmission
.
bot
!==
undefined
)
{
return
response
.
status
(
400
).
end
()
}
const
transporter
=
nodemailer
.
createTransport
({
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment