Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello_uni-id-pages
提交
e8f4a74c
H
hello_uni-id-pages
项目概览
DCloud
/
hello_uni-id-pages
通知
1054
Star
31
Fork
43
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
4
列表
看板
标记
里程碑
合并请求
2
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hello_uni-id-pages
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
4
Issue
4
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
e8f4a74c
编写于
11月 15, 2022
作者:
雪洛
1
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: captcha required error
上级
b6d0137f
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
31 addition
and
0 deletion
+31
-0
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/account/reset-pwd-by-email.js
...dfunctions/uni-id-co/module/account/reset-pwd-by-email.js
+5
-0
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/account/reset-pwd-by-sms.js
...oudfunctions/uni-id-co/module/account/reset-pwd-by-sms.js
+5
-0
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/login/login-by-sms.js
...oud/cloudfunctions/uni-id-co/module/login/login-by-sms.js
+8
-0
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/login/login.js
...s/uniCloud/cloudfunctions/uni-id-co/module/login/login.js
+5
-0
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/relate/bind-mobile-by-sms.js
...udfunctions/uni-id-co/module/relate/bind-mobile-by-sms.js
+8
-0
未找到文件。
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/account/reset-pwd-by-email.js
浏览文件 @
e8f4a74c
...
@@ -52,6 +52,11 @@ module.exports = async function (params = {}) {
...
@@ -52,6 +52,11 @@ module.exports = async function (params = {}) {
type
:
LOG_TYPE
.
RESET_PWD_BY_EMAIL
type
:
LOG_TYPE
.
RESET_PWD_BY_EMAIL
})
})
if
(
needCaptcha
)
{
if
(
needCaptcha
)
{
if
(
!
captcha
)
{
throw
{
errCode
:
ERROR
.
CAPTCHA_REQUIRED
}
}
await
verifyCaptcha
.
call
(
this
,
{
await
verifyCaptcha
.
call
(
this
,
{
captcha
,
captcha
,
scene
:
CAPTCHA_SCENE
.
RESET_PWD_BY_EMAIL
scene
:
CAPTCHA_SCENE
.
RESET_PWD_BY_EMAIL
...
...
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/account/reset-pwd-by-sms.js
浏览文件 @
e8f4a74c
...
@@ -52,6 +52,11 @@ module.exports = async function (params = {}) {
...
@@ -52,6 +52,11 @@ module.exports = async function (params = {}) {
type
:
LOG_TYPE
.
RESET_PWD_BY_SMS
type
:
LOG_TYPE
.
RESET_PWD_BY_SMS
})
})
if
(
needCaptcha
)
{
if
(
needCaptcha
)
{
if
(
!
captcha
)
{
throw
{
errCode
:
ERROR
.
CAPTCHA_REQUIRED
}
}
await
verifyCaptcha
.
call
(
this
,
{
await
verifyCaptcha
.
call
(
this
,
{
captcha
,
captcha
,
scene
:
CAPTCHA_SCENE
.
RESET_PWD_BY_SMS
scene
:
CAPTCHA_SCENE
.
RESET_PWD_BY_SMS
...
...
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/login/login-by-sms.js
浏览文件 @
e8f4a74c
...
@@ -14,6 +14,9 @@ const {
...
@@ -14,6 +14,9 @@ const {
SMS_SCENE
,
SMS_SCENE
,
LOG_TYPE
LOG_TYPE
}
=
require
(
'
../../common/constants
'
)
}
=
require
(
'
../../common/constants
'
)
const
{
ERROR
}
=
require
(
'
../../common/error
'
)
/**
/**
* 短信验证码登录
* 短信验证码登录
...
@@ -51,6 +54,11 @@ module.exports = async function (params = {}) {
...
@@ -51,6 +54,11 @@ module.exports = async function (params = {}) {
})
})
if
(
needCaptcha
)
{
if
(
needCaptcha
)
{
if
(
!
captcha
)
{
throw
{
errCode
:
ERROR
.
CAPTCHA_REQUIRED
}
}
await
verifyCaptcha
.
call
(
this
,
{
await
verifyCaptcha
.
call
(
this
,
{
captcha
,
captcha
,
scene
:
CAPTCHA_SCENE
.
LOGIN_BY_SMS
scene
:
CAPTCHA_SCENE
.
LOGIN_BY_SMS
...
...
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/login/login.js
浏览文件 @
e8f4a74c
...
@@ -71,6 +71,11 @@ module.exports = async function (params = {}) {
...
@@ -71,6 +71,11 @@ module.exports = async function (params = {}) {
email
email
})
})
if
(
needCaptcha
)
{
if
(
needCaptcha
)
{
if
(
!
captcha
)
{
throw
{
errCode
:
ERROR
.
CAPTCHA_REQUIRED
}
}
await
verifyCaptcha
.
call
(
this
,
{
await
verifyCaptcha
.
call
(
this
,
{
captcha
,
captcha
,
scene
:
CAPTCHA_SCENE
.
LOGIN_BY_PWD
scene
:
CAPTCHA_SCENE
.
LOGIN_BY_PWD
...
...
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/relate/bind-mobile-by-sms.js
浏览文件 @
e8f4a74c
...
@@ -14,6 +14,9 @@ const {
...
@@ -14,6 +14,9 @@ const {
preBind
,
preBind
,
postBind
postBind
}
=
require
(
'
../../lib/utils/relate
'
)
}
=
require
(
'
../../lib/utils/relate
'
)
const
{
ERROR
}
=
require
(
'
../../common/error
'
)
/**
/**
* 通过短信验证码绑定手机号
* 通过短信验证码绑定手机号
...
@@ -47,6 +50,11 @@ module.exports = async function (params = {}) {
...
@@ -47,6 +50,11 @@ module.exports = async function (params = {}) {
type
:
LOG_TYPE
.
BIND_MOBILE
type
:
LOG_TYPE
.
BIND_MOBILE
})
})
if
(
needCaptcha
)
{
if
(
needCaptcha
)
{
if
(
!
captcha
)
{
throw
{
errCode
:
ERROR
.
CAPTCHA_REQUIRED
}
}
await
verifyCaptcha
.
call
(
this
,
{
await
verifyCaptcha
.
call
(
this
,
{
captcha
,
captcha
,
scene
:
CAPTCHA_SCENE
.
BIND_MOBILE_BY_SMS
scene
:
CAPTCHA_SCENE
.
BIND_MOBILE_BY_SMS
...
...
雪洛
@u013082782
mentioned in commit
26a60d45
·
11月 15, 2022
mentioned in commit
26a60d45
mentioned in commit 26a60d45aac9bc7e84a6eb32d19e2ed2885b944a
开关提交列表
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录