Browse Source

忘记密码

zhuang 1 year ago
parent
commit
096036caea

+ 7 - 0
src/app/routes/passport/forgetPassword/forget.password.component.html

@@ -73,4 +73,11 @@
       提交
     </button>
   </nz-form-item>
+  <nz-form-item nz-row nzJustify="end">
+    <nz-col  [nzSpan]="12" class="text-right login-register-button-wrapper">
+      <ng-container>
+        <a class="forgot login-forget-button" (click)="returnLogin()">{{ '返回登录页' | i18n }}</a>
+      </ng-container>
+    </nz-col>
+  </nz-form-item>
 </form>

+ 4 - 0
src/app/routes/passport/forgetPassword/forget.password.component.ts

@@ -344,6 +344,10 @@ export class ForgetPasswordComponent implements OnDestroy, OnInit {
     }
   }
 
+  returnLogin() {
+    this.router.navigate([this.registerUrl], { queryParams: { account: this.account.value || '' } });
+  }
+
   RSALong(publicKey: string, value: string): string {
     const encrypt = new window.JSEncrypt();
     encrypt.setPublicKey(publicKey);