Improve login

This commit is contained in:
Peter Maquiran
2021-09-02 12:17:14 +01:00
parent 3614a2eba7
commit 1f2631fcdf
10 changed files with 51 additions and 75 deletions
@@ -53,7 +53,7 @@
</div>
</div>
<div class="login-preference width-100" *ngIf="!production">
<div class="login-preference width-100" *ngIf="!platform.is('desktop') && !platform.is('mobileweb')">
<div class="preference">Preferência Login</div>
<ion-row>
@@ -73,11 +73,6 @@
</ion-row>
</div>
<div hidden class="d-flex width-100 justify-center mt-10">
<button hidden (click)="addPin()" class="btn-ok buttonSize" fill="clear" color="#fff" >
<ion-label>Alterar PIN</ion-label>
</button>
</div>
</div>
</div>
</ion-content>
@@ -4,6 +4,7 @@ import { FingerprintPage } from 'src/app/shared/fingerprint/fingerprint.page';
import { PinPage } from 'src/app/shared/pin/pin.page';
import { SessionStore } from 'src/app/store/session.service';
import { environment } from 'src/environments/environment';
import { Platform } from '@ionic/angular';
@Component({
selector: 'app-edit-profile',
@@ -16,7 +17,8 @@ export class EditProfilePage implements OnInit {
production = environment.production
constructor(private modalController:ModalController,
private animationController: AnimationController
private animationController: AnimationController,
public platform: Platform,
) {}
ngOnInit() {}
+2 -3
View File
@@ -11,7 +11,6 @@ import { JsonStore } from '../../services/jsonStore.service';
import { StorageService } from '../../services/storage.service';
import { NotificationsService } from '../../services/notifications.service';
import { SessionStore } from 'src/app/store/session.service';
import { synchro } from 'src/app/services/socket/synchro.service';
@Component({
selector: 'app-profile',
@@ -43,7 +42,7 @@ export class ProfilePage implements OnInit {
private zone: NgZone,
private notificationservice: NotificationsService,
private platform: Platform,
private notificationsService: NotificationsService,
private notificationsService: NotificationsService,
) {
this.loggeduser = authService.ValidatedUser;
@@ -222,7 +221,7 @@ export class ProfilePage implements OnInit {
SessionStore.setInativity(false)
setTimeout(() => {
this.router.navigate(['/login']);
this.router.navigateByUrl('/', { replaceUrl: true });
}, 100)
}