logoutable

ssr
Artemis 2022-02-05 05:59:35 +03:30
parent 937e3c7fcb
commit 6e220266b3
2 changed files with 12 additions and 0 deletions

View File

@ -23,6 +23,14 @@
</button>
</div>
<div class="card flex column">
<h3>خروج از حساب کاربری</h3>
<p class="subtitle">خروج از حساب کاربری که وارد شده اید تا بتوانید دوباره وارد شوید.</p>
<button class="delete-button" (click)="Logout()">
خروج از حساب کاربری
</button>
</div>
</div>
</main>
<app-kyc></app-kyc>

View File

@ -22,6 +22,10 @@ export class ProfileComponent implements OnInit {
ngOnInit(): void {
}
public Logout(): void {
this._CoreService.ForgetAuth()
}
public async ChangePassword(): Promise<void> {
try {
if (this.Password.length == 0) return this._CoreService.Toast('کلمه عبور وارد نشده است.')