[Feature][S300][task-view-1920][app] remove BJMTN login username
Change-Id: If61299fa2335c6358855957cf8b70447a2ece8e2
diff --git a/lynq/S300/BJMTN/ap/app/zte_webui/js/com.js b/lynq/S300/BJMTN/ap/app/zte_webui/js/com.js
index 3078ac1..265ab6c 100755
--- a/lynq/S300/BJMTN/ap/app/zte_webui/js/com.js
+++ b/lynq/S300/BJMTN/ap/app/zte_webui/js/com.js
@@ -91,8 +91,7 @@
function prepare(values, isPost) {
var obj = {
goformId: "LOGIN",
- password: config.PASSWORD_ENCODE ? Base64.encode(values.password) : values.password,
- username: config.PASSWORD_ENCODE ? Base64.encode(values.username) : values.username
+ password: config.PASSWORD_ENCODE ? Base64.encode(values.password) : values.password
};
return obj;
}
@@ -8189,7 +8188,6 @@
target.loginSecuritySupport = ko.observable(config.LOGIN_SECURITY_SUPPORT);
target.newPIN = ko.observable();
target.password = ko.observable();
- target.username = ko.observable();
target.PIN = ko.observable();
target.pinNumber = ko.observable(data.pinnumber);
target.PUK = ko.observable();
@@ -8249,7 +8247,6 @@
var ciphertext = "";
if (config.PASSWORD_ENCODE) {
ciphertext = target.password();
- var username = target.username();
} else {
var kparam = service.getDeviceInfoLow();
var tkey = CryptoJS.enc.Latin1.parse(kparam.skey);
@@ -8261,8 +8258,7 @@
}).toString();
}
service.login({
- password:ciphertext,
- username: username
+ password:ciphertext
}, function (info) {
setTimeout(function () {
timer = loginStatusCheckingTimer();
@@ -8279,7 +8275,6 @@
logout.init();
} else {
target.password("");
- target.username("");
if(config.LOGIN_SECURITY_SUPPORT){
target.checkLoginData(function(){
if (target.loginCount() == config.MAX_LOGIN_COUNT) {
@@ -8364,12 +8359,9 @@
function setFocus(){
setTimeout(function () {
var txtAdmin = $('#txtAdmin:visible');
- var txtUser = $('#txtUser:visible');
var txtPIN = $('#txtPIN:visible');
var txtPUK = $('#txtPUK:visible');
- if(txtUser.length > 0) {
- txtUser.focus();
- } else if (txtAdmin.length > 0) {
+ if (txtAdmin.length > 0) {
txtAdmin.focus();
} else if (txtPIN.length > 0) {
txtPIN.focus();
diff --git a/lynq/S300/BJMTN/ap/app/zte_webui/subpg/entry.html b/lynq/S300/BJMTN/ap/app/zte_webui/subpg/entry.html
index e5397c1..621d021 100755
--- a/lynq/S300/BJMTN/ap/app/zte_webui/subpg/entry.html
+++ b/lynq/S300/BJMTN/ap/app/zte_webui/subpg/entry.html
@@ -14,11 +14,11 @@
<label data-trans="password" for="txtAdmin"></label>
</div>
</div>
- <div class="row form-group" style="display:none;">
+ <!-- <div class="row form-group">
<div class="col-xs-8">
<input id="txtUser" autocomplete="off" data-placeholder="username" data-bind="value:username, valueUpdate: 'keypress'" maxlength="32" name="txtUser" style="border:2px solid rgb(221, 221, 221);" class="required form-control"/>
</div>
- </div>
+ </div> -->
<div class="row form-group">
<div class="col-xs-8">
<input id="txtAdmin" autocomplete="off" data-placeholder="password" data-bind="value:password, valueUpdate: 'keypress'" maxlength="32" name="txtAdmin" style="border:2px solid rgb(221, 221, 221);" type="password" class="required form-control"/>