-
Notifications
You must be signed in to change notification settings - Fork 0
Worked on email templete #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
Parent:
Worked on email template
Santan24
wants to merge
19
commits into
master
Choose a base branch
from
santan
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
e4769bf
commit
55b2ca8
survey recipient models added
3009f9f
Added middleware
08f0559
comments removed
89081f2
removed extra spaces
27d5070
utils added
5e13288
corret user in app.js
b455df2
Activation link correction
71be255
feedback retrieving
de15739
get survey and updated profile
4de8d8d
Updated mail
221b653
Added logo in mail
9db0fe7
changed spellings of please
1e7b685
Fixed bugs
9bb471e
Dockerfile created
ffec875
Changes in docker
57aaa7a
changes in docker file
9c4bf8d
docker file changes
f67023e
Docker new image pushed
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| node_modules | ||
| npm-debug.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
|
|
||
| PORT=2000 | ||
| PORT=3000 | ||
| JWT_SECRET=askfeed1234 | ||
|
|
||
| USER=santanrathore75209@gmail.com | ||
| PASS=*Saheb13* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| node_modules | ||
| .env |
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| projectKey=token | ||
| serverUrl=http://dev-sonarqube.springrole.com:9000 | ||
| serverVersion=8.9.1.44547 | ||
| dashboardUrl=http://dev-sonarqube.springrole.com:9000/dashboard?id=token | ||
| ceTaskId=AXoaL8nL8zulQfXeM_9Q | ||
| ceTaskUrl=http://dev-sonarqube.springrole.com:9000/api/ce/task?id=AXoaL8nL8zulQfXeM_9Q |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| { | ||
| "configurations": [ | ||
| { | ||
| "name": "Docker Node.js Launch", | ||
| "type": "docker", | ||
| "request": "launch", | ||
| "preLaunchTask": "docker-run: debug", | ||
| "platform": "node", | ||
| "node": { | ||
| "package": "${workspaceFolder}/node_modules/which-module/package.json", | ||
| "localRoot": "${workspaceFolder}/node_modules/which-module" | ||
| } | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| { | ||
| "version": "2.0.0", | ||
| "tasks": [ | ||
| { | ||
| "type": "docker-build", | ||
| "label": "docker-build", | ||
| "platform": "node", | ||
| "dockerBuild": { | ||
| "dockerfile": "${workspaceFolder}/node_modules/which-module/Dockerfile", | ||
| "context": "${workspaceFolder}/node_modules/which-module", | ||
| "pull": true | ||
| }, | ||
| "node": { | ||
| "package": "${workspaceFolder}/node_modules/which-module/package.json" | ||
| } | ||
| }, | ||
| { | ||
| "type": "docker-run", | ||
| "label": "docker-run: release", | ||
| "dependsOn": [ | ||
| "docker-build" | ||
| ], | ||
| "platform": "node", | ||
| "node": { | ||
| "package": "${workspaceFolder}/node_modules/which-module/package.json" | ||
| } | ||
| }, | ||
| { | ||
| "type": "docker-run", | ||
| "label": "docker-run: debug", | ||
| "dependsOn": [ | ||
| "docker-build" | ||
| ], | ||
| "dockerRun": { | ||
| "env": { | ||
| "DEBUG": "*", | ||
| "NODE_ENV": "development" | ||
| } | ||
| }, | ||
| "node": { | ||
| "package": "${workspaceFolder}/node_modules/which-module/package.json", | ||
| "enableDebugging": true | ||
| } | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| FROM node:14.16 | ||
|
|
||
| WORKDIR /ask-feed | ||
|
|
||
| COPY package.json /ask-feed/package.json | ||
|
|
||
| RUN npm install | ||
|
|
||
| COPY . /ask-feed | ||
|
|
||
| EXPOSE 3000 | ||
|
|
||
| CMD ["npm","start"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check failure
Code scanning / CodeQL
Database query built from user-controlled sources High
Copilot Autofix
AI about 2 months ago
The best way to fix this problem is to ensure that the
emailvalue used in MongoDB queries is always interpreted as a literal value and not as a query object. There are two safe approaches:$eqoperator in the query:{ email: { $eq: email } }, which ensures that the value is not interpreted as a query object.emailis a string before constructing the query object.We will edit
controllers/auth.jsat line 168 in theloginfunction. We'll change the call from:to:
Optionally, for extra safety, you can add a type check for
email. But using$eqis sufficient and idiomatic.No additional imports or dependencies are needed.