提交 e582aab8 编写于 作者: 雪洛's avatar 雪洛

fix: register scene error

上级 f029334f
......@@ -32,6 +32,7 @@ const USER_STATUS = {
}
const CAPTCHA_SCENE = {
REGISTER: 'register',
LOGIN_BY_PWD: 'login-by-pwd',
LOGIN_BY_SMS: 'login-by-sms',
RESET_PWD_BY_SMS: 'reset-pwd-by-sms',
......
......@@ -5,6 +5,9 @@ const {
const {
verifyCaptcha
} = require('../../lib/utils/captcha')
const {
CAPTCHA_SCENE
} = require('../../common/constants')
/**
* 注册普通用户
......@@ -42,7 +45,7 @@ module.exports = async function (params = {}) {
await verifyCaptcha.call(this, {
captcha,
scene: 'register'
scene: CAPTCHA_SCENE.REGISTER
})
const {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册