Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello_uni-id-pages
提交
26a60d45
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看板
提交
26a60d45
编写于
11月 15, 2022
作者:
雪洛
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Revert "fix: captcha required error"
This reverts commit
e8f4a74c
.
上级
e8f4a74c
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
0 addition
and
31 deletion
+0
-31
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
+0
-5
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
+0
-5
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
+0
-8
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/login/login.js
...s/uniCloud/cloudfunctions/uni-id-co/module/login/login.js
+0
-5
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
+0
-8
未找到文件。
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/account/reset-pwd-by-email.js
浏览文件 @
26a60d45
...
@@ -52,11 +52,6 @@ module.exports = async function (params = {}) {
...
@@ -52,11 +52,6 @@ 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
浏览文件 @
26a60d45
...
@@ -52,11 +52,6 @@ module.exports = async function (params = {}) {
...
@@ -52,11 +52,6 @@ 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
浏览文件 @
26a60d45
...
@@ -14,9 +14,6 @@ const {
...
@@ -14,9 +14,6 @@ const {
SMS_SCENE
,
SMS_SCENE
,
LOG_TYPE
LOG_TYPE
}
=
require
(
'
../../common/constants
'
)
}
=
require
(
'
../../common/constants
'
)
const
{
ERROR
}
=
require
(
'
../../common/error
'
)
/**
/**
* 短信验证码登录
* 短信验证码登录
...
@@ -54,11 +51,6 @@ module.exports = async function (params = {}) {
...
@@ -54,11 +51,6 @@ 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
浏览文件 @
26a60d45
...
@@ -71,11 +71,6 @@ module.exports = async function (params = {}) {
...
@@ -71,11 +71,6 @@ 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
浏览文件 @
26a60d45
...
@@ -14,9 +14,6 @@ const {
...
@@ -14,9 +14,6 @@ const {
preBind
,
preBind
,
postBind
postBind
}
=
require
(
'
../../lib/utils/relate
'
)
}
=
require
(
'
../../lib/utils/relate
'
)
const
{
ERROR
}
=
require
(
'
../../common/error
'
)
/**
/**
* 通过短信验证码绑定手机号
* 通过短信验证码绑定手机号
...
@@ -50,11 +47,6 @@ module.exports = async function (params = {}) {
...
@@ -50,11 +47,6 @@ 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
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录