Explorar o código

增加新旧密码不一致的校验

heyiwen hai 3 semanas
pai
achega
871c18aec9
Modificáronse 3 ficheiros con 4 adicións e 10190 borrados
  1. 0 10188
      package-lock.json
  2. 2 2
      src/app/app.config.ts
  3. 2 0
      src/pages/login/login.ts

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 10188
package-lock.json


+ 2 - 2
src/app/app.config.ts

@@ -1,8 +1,8 @@
 export class AppConfig {
 	public static getServiceUrl() {
-    return "http://192.168.0.68:8031/";
+    // return "http://192.168.0.68:8031/";
     // return "http://localhost/";
-    // return "https://jdks.lnc.edu.cn/";
+    return "https://jdks.lnc.edu.cn/";
     // return "http://localhost/LIOT/";
     //  return "http://liot.bowintek.com/";
     //return "http://localhost:18634/";

+ 2 - 0
src/pages/login/login.ts

@@ -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: [{