verification.js 317 B

12345678910111213
  1. const express = require('express')
  2. const router = express.Router()
  3. router.post('/', async (req, res) => {
  4. let code = req.body.code
  5. if(code == req.session.emailtext) {
  6. res.status(200).send('验证码正确')
  7. }else {
  8. res.status(201).send('验证码错误')
  9. }
  10. })
  11. module.exports = router