fix(#I135E7): 关闭 Mobile 认证后用户密码登录方式失效
#Comment comment #I135E7 #Issue close https://gitee.com/LongbowEnterprise/dashboard/issues?id=I135E7
This commit is contained in:
parent
e062001953
commit
e6966886df
|
@ -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 () {
|
||||
|
|
Loading…
Reference in New Issue