提交 984f7396 编写于 作者: C chenruilong

fix(uni-id-co): 优化 手机号与邮箱验证规则为空字符串时不校验

上级 e62a9ae4
## 1.0.38(2022-12-26)
- uni-id-co 优化 手机号与邮箱验证规则为空字符串时不校验
## 1.0.37(2022-12-09)
- 优化admin端样式
## 1.0.36(2022-12-08)
- uni-id-co 优化 手机号与邮箱验证规则为空字符串时不校验
- uni-id-co 修复 `updateUser` 接口部分参数为空时数据修改异常
## 1.0.35(2022-11-30)
- uni-id-co 新增 匹配到的用户不可在当前应用登录时的错误码 `uni-id-account-not-exists-in-current-app` [错误码说明](https://uniapp.dcloud.net.cn/uniCloud/uni-id-summary.html#errcode)
......
{
"id": "uni-id-pages",
"displayName": "uni-id-pages",
"version": "1.0.37",
"version": "1.0.38",
"description": "云端一体简单、统一、可扩展的用户中心页面模版",
"keywords": [
"用户管理",
......
......@@ -46,7 +46,7 @@ baseValidator.password = function (password) {
baseValidator.mobile = function (mobile) {
const errCode = ERROR.INVALID_MOBILE
if (!isValidString(mobile)) {
if (getType(mobile) !== 'string') {
return {
errCode
}
......@@ -60,7 +60,7 @@ baseValidator.mobile = function (mobile) {
baseValidator.email = function (email) {
const errCode = ERROR.INVALID_EMAIL
if (!isValidString(email)) {
if (getType(email) !== 'string') {
return {
errCode
}
......
{
"name": "uni-id-co",
"version": "1.0.36",
"version": "1.0.38",
"description": "",
"main": "index.js",
"keywords": [],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册