system-clients 3.3.1-v3 → 3.3.2-v3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/components/Util.js +15 -0
- package/src/components/server/Login.vue +7 -15
- package/src/filiale/baole/Login.vue +7 -3
- package/src/filiale/chengtou/Login.vue +7 -3
- package/src/filiale/dongguan/Login.vue +7 -3
- package/src/filiale/furuike/Login.vue +7 -3
- package/src/filiale/konggang/Login.vue +7 -3
- package/src/filiale/qianneng/Login.vue +7 -3
- package/src/filiale/rizhao/Login.vue +7 -3
- package/src/filiale/shiquan/Login.vue +7 -3
- package/src/filiale/tianyi/Login.vue +7 -3
- package/src/filiale/tongchuan/Login.vue +7 -3
- package/src/filiale/wenxi/Login.vue +7 -3
- package/src/filiale/yuchuan/Login.vue +7 -3
package/package.json
CHANGED
package/src/components/Util.js
CHANGED
|
@@ -77,6 +77,21 @@ export function parse3339String (strDate) {
|
|
|
77
77
|
)
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
+
// 判断密码最后修改时间是否超过两个半月(2个月零15天)
|
|
81
|
+
export function isPasswordModificationExpired (lastModificationTime) {
|
|
82
|
+
if (!lastModificationTime) {
|
|
83
|
+
return true
|
|
84
|
+
}
|
|
85
|
+
const lastMod = parse3339String(lastModificationTime)
|
|
86
|
+
if (isNaN(lastMod.getTime())) {
|
|
87
|
+
return true
|
|
88
|
+
}
|
|
89
|
+
const expireDate = new Date(lastMod)
|
|
90
|
+
expireDate.setMonth(expireDate.getMonth() + 2)
|
|
91
|
+
expireDate.setDate(expireDate.getDate() + 15)
|
|
92
|
+
return new Date() > expireDate
|
|
93
|
+
}
|
|
94
|
+
|
|
80
95
|
export function format3339TimeString (dt) {
|
|
81
96
|
let month = dt.getMonth() + 1
|
|
82
97
|
let date = dt.getDate()
|
|
@@ -145,6 +145,7 @@ import co from 'co'
|
|
|
145
145
|
import $ from 'jquery'
|
|
146
146
|
import Vue from 'vue'
|
|
147
147
|
import {HttpResetClass} from 'vue-client'
|
|
148
|
+
import {isPasswordModificationExpired} from '../Util'
|
|
148
149
|
|
|
149
150
|
let daibanJson = require('../../util/Daiban.json')
|
|
150
151
|
|
|
@@ -158,18 +159,6 @@ let saveGen = function *(self) {
|
|
|
158
159
|
if(self.$appdata){
|
|
159
160
|
yield self.$appdata.load()
|
|
160
161
|
}
|
|
161
|
-
if (Vue.$heatCompatibility) {
|
|
162
|
-
try {
|
|
163
|
-
if(self.$loginHeat){
|
|
164
|
-
yield self.$loginHeat.login(self.model.ename, self.model.password)
|
|
165
|
-
}
|
|
166
|
-
if(self.$appdataHeat){
|
|
167
|
-
yield self.$appdataHeat.load()
|
|
168
|
-
}
|
|
169
|
-
} catch (e) {
|
|
170
|
-
console.log('热力系统登陆失败!')
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
162
|
yield self.$getConfig(self, 'Login')
|
|
174
163
|
console.log('登录配置', self.config)
|
|
175
164
|
if (self.config.isMac) {
|
|
@@ -203,12 +192,15 @@ let saveGen = function *(self) {
|
|
|
203
192
|
}
|
|
204
193
|
}
|
|
205
194
|
console.log(self.$login.depPrompt)
|
|
206
|
-
//
|
|
207
|
-
|
|
208
|
-
if ((!self.otherLogin) && self.config.weakPassword && !(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?!.*(123|321|abc|cba))[a-zA-Z\d!@#$%^&*()_+-=<>?]{8,16}$/.test(self.model.password))) {
|
|
195
|
+
// 弱口令验证(默认开启,跳转过来的不进行验证)
|
|
196
|
+
if ((!self.otherLogin) && !(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?!.*(123|321|abc|cba))[a-zA-Z\d!@#$%^&*()_+-=<>?]{8,16}$/.test(self.model.password))) {
|
|
209
197
|
self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
|
|
210
198
|
self.modifyPwShow = true
|
|
211
199
|
})
|
|
200
|
+
} else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
|
|
201
|
+
self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
|
|
202
|
+
self.modifyPwShow = true
|
|
203
|
+
})
|
|
212
204
|
} else if ((!self.otherLogin) && self.$login.depPrompt) {
|
|
213
205
|
self.depPromptShow = true
|
|
214
206
|
if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
|
|
@@ -145,6 +145,7 @@ import co from 'co'
|
|
|
145
145
|
import $ from 'jquery'
|
|
146
146
|
import Vue from 'vue'
|
|
147
147
|
import {HttpResetClass} from 'vue-client'
|
|
148
|
+
import {isPasswordModificationExpired} from '../../components/Util'
|
|
148
149
|
|
|
149
150
|
let daibanJson = require('../../util/Daiban.json')
|
|
150
151
|
|
|
@@ -204,12 +205,15 @@ let saveGen = function *(self) {
|
|
|
204
205
|
}
|
|
205
206
|
}
|
|
206
207
|
console.log(self.$login.depPrompt)
|
|
207
|
-
//
|
|
208
|
-
|
|
209
|
-
if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
|
|
208
|
+
// 弱口令验证(默认开启,跳转过来的不进行验证)
|
|
209
|
+
if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
|
|
210
210
|
self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
|
|
211
211
|
self.modifyPwShow = true
|
|
212
212
|
})
|
|
213
|
+
} else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
|
|
214
|
+
self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
|
|
215
|
+
self.modifyPwShow = true
|
|
216
|
+
})
|
|
213
217
|
} else if ((!self.otherLogin) && self.$login.depPrompt) {
|
|
214
218
|
self.depPromptShow = true
|
|
215
219
|
if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
|
|
@@ -143,6 +143,7 @@ import co from 'co'
|
|
|
143
143
|
import $ from 'jquery'
|
|
144
144
|
import Vue from 'vue'
|
|
145
145
|
import {HttpResetClass} from 'vue-client'
|
|
146
|
+
import {isPasswordModificationExpired} from '../../components/Util'
|
|
146
147
|
|
|
147
148
|
let daibanJson = require('../../util/Daiban.json')
|
|
148
149
|
|
|
@@ -202,12 +203,15 @@ let saveGen = function *(self) {
|
|
|
202
203
|
}
|
|
203
204
|
}
|
|
204
205
|
console.log(self.$login.depPrompt)
|
|
205
|
-
//
|
|
206
|
-
|
|
207
|
-
if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
|
|
206
|
+
// 弱口令验证(默认开启,跳转过来的不进行验证)
|
|
207
|
+
if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
|
|
208
208
|
self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
|
|
209
209
|
self.modifyPwShow = true
|
|
210
210
|
})
|
|
211
|
+
} else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
|
|
212
|
+
self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
|
|
213
|
+
self.modifyPwShow = true
|
|
214
|
+
})
|
|
211
215
|
} else if ((!self.otherLogin) && self.$login.depPrompt) {
|
|
212
216
|
self.depPromptShow = true
|
|
213
217
|
if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
|
|
@@ -149,6 +149,7 @@ import co from 'co'
|
|
|
149
149
|
import $ from 'jquery'
|
|
150
150
|
import Vue from 'vue'
|
|
151
151
|
import {HttpResetClass} from 'vue-client'
|
|
152
|
+
import {isPasswordModificationExpired} from '../../components/Util'
|
|
152
153
|
|
|
153
154
|
let daibanJson = require('../../util/Daiban.json')
|
|
154
155
|
|
|
@@ -208,12 +209,15 @@ let saveGen = function *(self) {
|
|
|
208
209
|
}
|
|
209
210
|
}
|
|
210
211
|
console.log(self.$login.depPrompt)
|
|
211
|
-
//
|
|
212
|
-
|
|
213
|
-
if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
|
|
212
|
+
// 弱口令验证(默认开启,跳转过来的不进行验证)
|
|
213
|
+
if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
|
|
214
214
|
self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
|
|
215
215
|
self.modifyPwShow = true
|
|
216
216
|
})
|
|
217
|
+
} else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
|
|
218
|
+
self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
|
|
219
|
+
self.modifyPwShow = true
|
|
220
|
+
})
|
|
217
221
|
} else if ((!self.otherLogin) && self.$login.depPrompt) {
|
|
218
222
|
self.depPromptShow = true
|
|
219
223
|
if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
|
|
@@ -136,6 +136,7 @@ import co from 'co'
|
|
|
136
136
|
import $ from 'jquery'
|
|
137
137
|
import Vue from 'vue'
|
|
138
138
|
import {HttpResetClass} from 'vue-client'
|
|
139
|
+
import {isPasswordModificationExpired} from '../../components/Util'
|
|
139
140
|
|
|
140
141
|
let daibanJson = require('../../util/Daiban.json')
|
|
141
142
|
|
|
@@ -195,12 +196,15 @@ let saveGen = function *(self) {
|
|
|
195
196
|
}
|
|
196
197
|
}
|
|
197
198
|
console.log(self.$login.depPrompt)
|
|
198
|
-
//
|
|
199
|
-
|
|
200
|
-
if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
|
|
199
|
+
// 弱口令验证(默认开启,跳转过来的不进行验证)
|
|
200
|
+
if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
|
|
201
201
|
self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
|
|
202
202
|
self.modifyPwShow = true
|
|
203
203
|
})
|
|
204
|
+
} else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
|
|
205
|
+
self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
|
|
206
|
+
self.modifyPwShow = true
|
|
207
|
+
})
|
|
204
208
|
} else if ((!self.otherLogin) && self.$login.depPrompt) {
|
|
205
209
|
self.depPromptShow = true
|
|
206
210
|
if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
|
|
@@ -134,6 +134,7 @@
|
|
|
134
134
|
import $ from 'jquery'
|
|
135
135
|
import Vue from 'vue'
|
|
136
136
|
import {HttpResetClass} from 'vue-client'
|
|
137
|
+
import {isPasswordModificationExpired} from '../../components/Util'
|
|
137
138
|
|
|
138
139
|
|
|
139
140
|
|
|
@@ -191,12 +192,15 @@
|
|
|
191
192
|
}
|
|
192
193
|
}
|
|
193
194
|
console.log(self.$login.depPrompt)
|
|
194
|
-
//
|
|
195
|
-
|
|
196
|
-
if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
|
|
195
|
+
// 弱口令验证(默认开启,跳转过来的不进行验证)
|
|
196
|
+
if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
|
|
197
197
|
self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
|
|
198
198
|
self.modifyPwShow = true
|
|
199
199
|
})
|
|
200
|
+
} else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
|
|
201
|
+
self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
|
|
202
|
+
self.modifyPwShow = true
|
|
203
|
+
})
|
|
200
204
|
} else if ((!self.otherLogin) && self.$login.depPrompt) {
|
|
201
205
|
self.depPromptShow = true
|
|
202
206
|
if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
|
|
@@ -145,6 +145,7 @@ import co from 'co'
|
|
|
145
145
|
import $ from 'jquery'
|
|
146
146
|
import Vue from 'vue'
|
|
147
147
|
import {HttpResetClass} from 'vue-client'
|
|
148
|
+
import {isPasswordModificationExpired} from '../../components/Util'
|
|
148
149
|
import cryptJS from "../../plugins/EncryptUtil";
|
|
149
150
|
|
|
150
151
|
let daibanJson = require('../../util/Daiban.json')
|
|
@@ -204,12 +205,15 @@ let saveGen = function *(self) {
|
|
|
204
205
|
}
|
|
205
206
|
}
|
|
206
207
|
console.log(self.$login.depPrompt)
|
|
207
|
-
//
|
|
208
|
-
|
|
209
|
-
if ((!self.otherLogin) && self.config.weakPassword && !(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?!.*(.)(\1)+)(?!.*(123|321|abc|cba))[a-zA-Z\d!@#$%^&*()_+-=<>?]{8,16}$/.test(self.model.password))) {
|
|
208
|
+
// 弱口令验证(默认开启,跳转过来的不进行验证)
|
|
209
|
+
if ((!self.otherLogin) && !(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?!.*(.)(\1)+)(?!.*(123|321|abc|cba))[a-zA-Z\d!@#$%^&*()_+-=<>?]{8,16}$/.test(self.model.password))) {
|
|
210
210
|
self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
|
|
211
211
|
self.modifyPwShow = true
|
|
212
212
|
})
|
|
213
|
+
} else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
|
|
214
|
+
self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
|
|
215
|
+
self.modifyPwShow = true
|
|
216
|
+
})
|
|
213
217
|
} else if ((!self.otherLogin) && self.$login.depPrompt) {
|
|
214
218
|
self.depPromptShow = true
|
|
215
219
|
if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
|
|
@@ -124,6 +124,7 @@ import co from 'co'
|
|
|
124
124
|
import $ from 'jquery'
|
|
125
125
|
import Vue from 'vue'
|
|
126
126
|
import {HttpResetClass} from 'vue-client'
|
|
127
|
+
import {isPasswordModificationExpired} from '../../components/Util'
|
|
127
128
|
|
|
128
129
|
|
|
129
130
|
|
|
@@ -182,12 +183,15 @@ let saveGen = function *(self) {
|
|
|
182
183
|
}
|
|
183
184
|
}
|
|
184
185
|
console.log(self.$login.depPrompt)
|
|
185
|
-
//
|
|
186
|
-
|
|
187
|
-
if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
|
|
186
|
+
// 弱口令验证(默认开启,跳转过来的不进行验证)
|
|
187
|
+
if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
|
|
188
188
|
self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
|
|
189
189
|
self.modifyPwShow = true
|
|
190
190
|
})
|
|
191
|
+
} else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
|
|
192
|
+
self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
|
|
193
|
+
self.modifyPwShow = true
|
|
194
|
+
})
|
|
191
195
|
} else if ((!self.otherLogin) && self.$login.depPrompt) {
|
|
192
196
|
self.depPromptShow = true
|
|
193
197
|
} else {
|
|
@@ -145,6 +145,7 @@
|
|
|
145
145
|
import $ from 'jquery'
|
|
146
146
|
import Vue from 'vue'
|
|
147
147
|
import {HttpResetClass} from 'vue-client'
|
|
148
|
+
import {isPasswordModificationExpired} from '../../components/Util'
|
|
148
149
|
|
|
149
150
|
let daibanJson = require('../../util/Daiban.json')
|
|
150
151
|
|
|
@@ -203,12 +204,15 @@
|
|
|
203
204
|
}
|
|
204
205
|
}
|
|
205
206
|
console.log(self.$login.depPrompt)
|
|
206
|
-
//
|
|
207
|
-
|
|
208
|
-
if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
|
|
207
|
+
// 弱口令验证(默认开启,跳转过来的不进行验证)
|
|
208
|
+
if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
|
|
209
209
|
self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
|
|
210
210
|
self.modifyPwShow = true
|
|
211
211
|
})
|
|
212
|
+
} else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
|
|
213
|
+
self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
|
|
214
|
+
self.modifyPwShow = true
|
|
215
|
+
})
|
|
212
216
|
} else if ((!self.otherLogin) && self.$login.depPrompt) {
|
|
213
217
|
self.depPromptShow = true
|
|
214
218
|
if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
|
|
@@ -148,6 +148,7 @@ import co from 'co'
|
|
|
148
148
|
import $ from 'jquery'
|
|
149
149
|
import Vue from 'vue'
|
|
150
150
|
import {HttpResetClass} from 'vue-client'
|
|
151
|
+
import {isPasswordModificationExpired} from '../../components/Util'
|
|
151
152
|
|
|
152
153
|
let daibanJson = require('../../util/Daiban.json')
|
|
153
154
|
|
|
@@ -207,12 +208,15 @@ let saveGen = function *(self) {
|
|
|
207
208
|
}
|
|
208
209
|
}
|
|
209
210
|
console.log(self.$login.depPrompt)
|
|
210
|
-
//
|
|
211
|
-
|
|
212
|
-
if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
|
|
211
|
+
// 弱口令验证(默认开启,跳转过来的不进行验证)
|
|
212
|
+
if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
|
|
213
213
|
self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
|
|
214
214
|
self.modifyPwShow = true
|
|
215
215
|
})
|
|
216
|
+
} else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
|
|
217
|
+
self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
|
|
218
|
+
self.modifyPwShow = true
|
|
219
|
+
})
|
|
216
220
|
} else if ((!self.otherLogin) && self.$login.depPrompt) {
|
|
217
221
|
self.depPromptShow = true
|
|
218
222
|
if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
|
|
@@ -141,6 +141,7 @@ import co from 'co'
|
|
|
141
141
|
import $ from 'jquery'
|
|
142
142
|
import Vue from 'vue'
|
|
143
143
|
import {HttpResetClass} from 'vue-client'
|
|
144
|
+
import {isPasswordModificationExpired} from '../../components/Util'
|
|
144
145
|
|
|
145
146
|
let daibanJson = require('../../util/Daiban.json')
|
|
146
147
|
|
|
@@ -200,12 +201,15 @@ let saveGen = function *(self) {
|
|
|
200
201
|
}
|
|
201
202
|
}
|
|
202
203
|
console.log(self.$login.depPrompt)
|
|
203
|
-
//
|
|
204
|
-
|
|
205
|
-
if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
|
|
204
|
+
// 弱口令验证(默认开启,跳转过来的不进行验证)
|
|
205
|
+
if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
|
|
206
206
|
self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
|
|
207
207
|
self.modifyPwShow = true
|
|
208
208
|
})
|
|
209
|
+
} else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
|
|
210
|
+
self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
|
|
211
|
+
self.modifyPwShow = true
|
|
212
|
+
})
|
|
209
213
|
} else if ((!self.otherLogin) && self.$login.depPrompt) {
|
|
210
214
|
self.depPromptShow = true
|
|
211
215
|
if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
|
|
@@ -141,6 +141,7 @@ import co from 'co'
|
|
|
141
141
|
import $ from 'jquery'
|
|
142
142
|
import Vue from 'vue'
|
|
143
143
|
import {HttpResetClass} from 'vue-client'
|
|
144
|
+
import {isPasswordModificationExpired} from '../../components/Util'
|
|
144
145
|
|
|
145
146
|
let daibanJson = require('../../util/Daiban.json')
|
|
146
147
|
|
|
@@ -200,12 +201,15 @@ let saveGen = function *(self) {
|
|
|
200
201
|
}
|
|
201
202
|
}
|
|
202
203
|
console.log(self.$login.depPrompt)
|
|
203
|
-
//
|
|
204
|
-
|
|
205
|
-
if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
|
|
204
|
+
// 弱口令验证(默认开启,跳转过来的不进行验证)
|
|
205
|
+
if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
|
|
206
206
|
self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
|
|
207
207
|
self.modifyPwShow = true
|
|
208
208
|
})
|
|
209
|
+
} else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
|
|
210
|
+
self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
|
|
211
|
+
self.modifyPwShow = true
|
|
212
|
+
})
|
|
209
213
|
} else if ((!self.otherLogin) && self.$login.depPrompt) {
|
|
210
214
|
self.depPromptShow = true
|
|
211
215
|
if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
|
|
@@ -140,6 +140,7 @@ import co from 'co'
|
|
|
140
140
|
import $ from 'jquery'
|
|
141
141
|
import Vue from 'vue'
|
|
142
142
|
import {HttpResetClass} from 'vue-client'
|
|
143
|
+
import {isPasswordModificationExpired} from '../../components/Util'
|
|
143
144
|
|
|
144
145
|
let daibanJson = require('../../util/Daiban.json')
|
|
145
146
|
|
|
@@ -199,12 +200,15 @@ let saveGen = function *(self) {
|
|
|
199
200
|
}
|
|
200
201
|
}
|
|
201
202
|
console.log(self.$login.depPrompt)
|
|
202
|
-
//
|
|
203
|
-
|
|
204
|
-
if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
|
|
203
|
+
// 弱口令验证(默认开启,跳转过来的不进行验证)
|
|
204
|
+
if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
|
|
205
205
|
self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
|
|
206
206
|
self.modifyPwShow = true
|
|
207
207
|
})
|
|
208
|
+
} else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
|
|
209
|
+
self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
|
|
210
|
+
self.modifyPwShow = true
|
|
211
|
+
})
|
|
208
212
|
} else if ((!self.otherLogin) && self.$login.depPrompt) {
|
|
209
213
|
self.depPromptShow = true
|
|
210
214
|
if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
|