mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-03 18:28:13 +01:00
lock screen improvements
This commit is contained in:
parent
6b0719db45
commit
3942409c9a
2
jslib
2
jslib
@ -1 +1 @@
|
|||||||
Subproject commit e7464785e134e5d723a4901cf54c5dd1668efb5c
|
Subproject commit 65bd33d860f3af71968a15e78491221091c4369e
|
@ -16,6 +16,7 @@
|
|||||||
<i class="fa fa-lg" [ngClass]="{'fa-eye': !showPassword, 'fa-eye-slash': showPassword}"></i>
|
<i class="fa fa-lg" [ngClass]="{'fa-eye': !showPassword, 'fa-eye-slash': showPassword}"></i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
<small class="text-muted form-text">{{'loggedInAsEmail' | i18n : email}}</small>
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
<div class="d-flex">
|
<div class="d-flex">
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
import {
|
import { Component } from '@angular/core';
|
||||||
Component,
|
|
||||||
OnInit,
|
|
||||||
} from '@angular/core';
|
|
||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
|
|
||||||
import { CryptoService } from 'jslib/abstractions/crypto.service';
|
import { CryptoService } from 'jslib/abstractions/crypto.service';
|
||||||
@ -18,7 +15,7 @@ import { LockComponent as BaseLockComponent } from 'jslib/angular/components/loc
|
|||||||
selector: 'app-lock',
|
selector: 'app-lock',
|
||||||
templateUrl: 'lock.component.html',
|
templateUrl: 'lock.component.html',
|
||||||
})
|
})
|
||||||
export class LockComponent extends BaseLockComponent implements OnInit {
|
export class LockComponent extends BaseLockComponent {
|
||||||
constructor(router: Router, i18nService: I18nService,
|
constructor(router: Router, i18nService: I18nService,
|
||||||
platformUtilsService: PlatformUtilsService, messagingService: MessagingService,
|
platformUtilsService: PlatformUtilsService, messagingService: MessagingService,
|
||||||
userService: UserService, cryptoService: CryptoService,
|
userService: UserService, cryptoService: CryptoService,
|
||||||
@ -27,6 +24,7 @@ export class LockComponent extends BaseLockComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async ngOnInit() {
|
async ngOnInit() {
|
||||||
|
await super.ngOnInit();
|
||||||
const authed = await this.userService.isAuthenticated();
|
const authed = await this.userService.isAuthenticated();
|
||||||
if (!authed) {
|
if (!authed) {
|
||||||
this.router.navigate(['/']);
|
this.router.navigate(['/']);
|
||||||
|
@ -589,6 +589,15 @@
|
|||||||
"unlock": {
|
"unlock": {
|
||||||
"message": "Unlock"
|
"message": "Unlock"
|
||||||
},
|
},
|
||||||
|
"loggedInAsEmail": {
|
||||||
|
"message": "Logged in as $EMAIL$.",
|
||||||
|
"placeholders": {
|
||||||
|
"email": {
|
||||||
|
"content": "$1",
|
||||||
|
"example": "name@example.com"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"invalidMasterPassword": {
|
"invalidMasterPassword": {
|
||||||
"message": "Invalid master password"
|
"message": "Invalid master password"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user