Skip to content

Commit

Permalink
fix veryfi case
Browse files Browse the repository at this point in the history
  • Loading branch information
ushliypakostnik committed Sep 15, 2019
1 parent 0cc746f commit 8dd33f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ API
*

POST { body: { id } }
(authentication required)
(optional, everyone has access)
${HOST}/api/user/verify

Защищенный роут позволяющий верифицировать аккаунт пользователя по полученному айди
Общедоступнй роут позволяющий верифицировать аккаунт пользователя по полученному айди

*

Expand Down
2 changes: 1 addition & 1 deletion routes/api/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ router.post('/send-verify-email', auth.required, jsonParser, (req, res, next) =>


// POST Verify account
router.post('/verify', auth.required, jsonParser, (req, res, next) => {
router.post('/verify', auth.optional, jsonParser, (req, res, next) => {
const { id } = req.body;

return User.findOneAndUpdate({ _id: id },
Expand Down

0 comments on commit 8dd33f1

Please sign in to comment.