|
@@ -75,6 +75,7 @@ export class LoginPage {
|
|
|
localStorage.loginID = student.LoginID;
|
|
|
|
|
|
if (!(/^(?=.*?[0-9])(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[#?!@$%^&*-]).{8,}$/g).test(this.loginForm.value.password)) {
|
|
|
+ this.userService.unbind();
|
|
|
this.alertCtrl.create({
|
|
|
message: '你的密码不符合系统的复杂度限制,请重新修改密码。',
|
|
|
buttons: [{
|
|
@@ -86,6 +87,7 @@ export class LoginPage {
|
|
|
}).present();
|
|
|
} else if (this.loginForm.value.password == 'Ab#888888'
|
|
|
|| this.loginForm.value.password == 'Ab!' + student.IDNumber.substring(student.IDNumber.length - 6)) {
|
|
|
+ this.userService.unbind();
|
|
|
this.alertCtrl.create({
|
|
|
message: '你在重置密码后首次登录,请重新修改密码。',
|
|
|
buttons: [{
|