fix(#I135E7): 关闭 Mobile 认证后用户密码登录方式失效

#Comment
comment #I135E7

#Issue
close https://gitee.com/LongbowEnterprise/dashboard/issues?id=I135E7
This commit is contained in:
Argo Zhang 2019-10-10 11:23:06 +08:00
parent e062001953
commit e6966886df
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
1 changed files with 39 additions and 36 deletions

View File

@ -134,6 +134,8 @@
$login.find('[name="userName"], [name="password"]').attr('data-valid', 'false');
}
var $loginType = $('#loginType');
if ($loginType.length === 1) {
$login.on('submit', function (e) {
var model = $loginType.attr('data-value');
if (model === 'username') {
@ -151,7 +153,7 @@
});
// login type
var $loginType = $('#loginType').on('click', function (e) {
$loginType.on('click', function (e) {
e.preventDefault();
var $this = $(this);
$login.find('[data-toggle="tooltip"]').tooltip('hide');
@ -174,6 +176,7 @@
$this.attr('data-value', 'username').text('短信验证登陆');
}
});
}
var timeHanlder = null;
$('#btnSendCode').on('click', function () {