This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
Repositories
Datasets
Forum
实训
竞赛
大数据
应用
Register
Sign In
OpenI
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Merge pull request 'V20220718.patch' (
#2527
) from V20220718.patch into V20220718
Reviewed-on:
https://git.openi.org.cn/OpenI/aiforge/pulls/2527
Reviewed-by: lewis <747342561@qq.com>
V20220718
lewis
2 years ago
parent
9f201ff6c2
04663b11b4
commit
3abd53e4f8
2 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
templates/user/auth/bind_phone.tmpl
+1
-1
web_src/js/standalone/phoneverify.js
+ 1
- 1
templates/user/auth/bind_phone.tmpl
View File
@@ -40,7 +40,7 @@
var verifyCode = bindPhoneEl.find('input.verifyCode').val();
if (phoneNumber && verifyCode) {
e.preventDefault();
if (!/^1[3
578
]\d{9}$/.test(phoneNumber)) {
if (!/^1[3
-9
]\d{9}$/.test(phoneNumber)) {
bindPhoneEl.find('.ui.negative.message').show().find('p').text({{.i18n.Tr "phone.please_enter_the_correct_mobile_number"}});
return;
}
+ 1
- 1
web_src/js/standalone/phoneverify.js
View File
@@ -153,7 +153,7 @@
return;
}
var phoneNumber = self.dom.find('.phone-num-c input').val();
if (!/^1[3
578
]\d{9}$/.test(phoneNumber)) {
if (!/^1[3
-9
]\d{9}$/.test(phoneNumber)) {
self.dom.find('.phone-num-c').addClass('error');
return;
} else {
Write
Preview
Loading…
Cancel
Save