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

fix: register scene error

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