diff --git a/www/login/index.html b/www/login/index.html
index 887d038..34e407e 100644
--- a/www/login/index.html
+++ b/www/login/index.html
@@ -198,19 +198,19 @@
document.getElementById("origin").value = window.location.search.replace('&error', '');
var userLang = navigator.language || navigator.userLanguage;
if (window.location.search.indexOf('error') != -1) {
- if (userLang == 'cn') {
+ if (userLang == 'zh-CN') {
document.getElementById('error').innerHTML = '无效的用户名或密码';
} else {
document.getElementById('error').innerHTML = 'Invalid username or password';
}
document.getElementById('error').style.display = '';
}
- if (userLang == 'cn') {
+ if (userLang == 'zh-CN') {
document.getElementById('login_header').innerHTML = '登录新空间云控平台';
} else {
document.getElementById('login_header').innerHTML = 'Please enter user name and password';
}
- if (userLang == 'cn') {
+ if (userLang == 'zh-CN') {
if (document.getElementById('username').placeholder) {
document.getElementById('username').placeholder = '用户名';
document.getElementById('password').placeholder = '密码';