-
diff --git a/SolarPower/Views/User/Index.cshtml b/SolarPower/Views/User/Index.cshtml
index 915d12d..8780a4c 100644
--- a/SolarPower/Views/User/Index.cshtml
+++ b/SolarPower/Views/User/Index.cshtml
@@ -350,6 +350,16 @@
"createdCell": function (td, cellData, rowData, row, col) {
$(td).html(row + 1)
}
+ }, {
+ 'targets': 7,
+ 'searchable': false,
+ 'orderable': false,
+ 'className': 'dt-body-center',
+ "createdCell": function (td, cellData, rowData, row, col) {
+ if (rowData.authCode == 'A') {
+ $(td).html("");
+ }
+ }
}],
"language": {
"emptyTable": "查無資料",
@@ -411,7 +421,7 @@
"autoWidth": false,
"responsive": false,
"deferLoading": 0,
- "order": [[1, "desc"]],
+ // "order": [[1, "desc"]],
"columns": [{
"data": "authCode"
}, {
diff --git a/SolarPower/wwwroot/js/site.js b/SolarPower/wwwroot/js/site.js
index 16cc2b6..6812e01 100644
--- a/SolarPower/wwwroot/js/site.js
+++ b/SolarPower/wwwroot/js/site.js
@@ -77,7 +77,7 @@ function SavePersonalInfo() {
//#region 變更密碼表單驗證
$(function () {
jQuery.validator.addMethod("pwcheck", function (value, element) {
- var xxx = /^[A-Za-z0-9\d=!\-@._*]*$/.test(value);
+ var xxx = /^[A-Za-z0-9\d=!@#$%^&+=]*$/.test(value);
return xxx;// consists of only these
//&& /[a-z]/.test(value) // has a lowercase letter
//&& /\d/.test(value) // has a digit
@@ -103,10 +103,10 @@ $(function () {
},
messages: {
new_password_modal: {
- pwcheck: "密碼格式錯誤"
+ pwcheck: "密碼格式錯誤,格式需為大小寫英文或數字或特殊符號【!@#$%^&+=】"
},
again_password_modal: {
- pwcheck: "密碼格式錯誤",
+ pwcheck: "密碼格式錯誤,格式需為大小寫英文或數字或特殊符號【!@#$%^&+=】",
equalTo: "兩次密碼輸入不同"
}
}