Add private key user info to settings page.
This commit is contained in:
parent
51f4f052c7
commit
506be2eb5b
@ -211,4 +211,8 @@ export class AuthService {
|
|||||||
getPrivateKey(): any {
|
getPrivateKey(): any {
|
||||||
return this.mutableKeyStore.getPrivateKey();
|
return this.mutableKeyStore.getPrivateKey();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getPrivateKeyInfo(): any {
|
||||||
|
return this.getPrivateKey().users[0].userId;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -23,9 +23,10 @@
|
|||||||
SETTINGS
|
SETTINGS
|
||||||
</mat-card-title>
|
</mat-card-title>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h4>Kobo Toolbox Credentials</h4>
|
<h4>CICADA Admin Credentials</h4>
|
||||||
<span><strong>Username: </strong> admin_reserve </span><br>
|
<span><strong>UserId: </strong> {{ userInfo.userid }} </span><br>
|
||||||
<span><strong>Password: </strong> ******** </span>
|
<span><strong>Username: </strong> {{ userInfo.name }} </span><br>
|
||||||
|
<span><strong>Email: </strong> {{ userInfo.email }} </span>
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
|
@ -17,6 +17,7 @@ export class SettingsComponent implements OnInit {
|
|||||||
dataSource: MatTableDataSource<any>;
|
dataSource: MatTableDataSource<any>;
|
||||||
displayedColumns: Array<string> = ['name', 'email', 'userId'];
|
displayedColumns: Array<string> = ['name', 'email', 'userId'];
|
||||||
trustedUsers: Array<Staff>;
|
trustedUsers: Array<Staff>;
|
||||||
|
userInfo: Staff;
|
||||||
|
|
||||||
@ViewChild(MatPaginator) paginator: MatPaginator;
|
@ViewChild(MatPaginator) paginator: MatPaginator;
|
||||||
@ViewChild(MatSort) sort: MatSort;
|
@ViewChild(MatSort) sort: MatSort;
|
||||||
@ -30,6 +31,7 @@ export class SettingsComponent implements OnInit {
|
|||||||
this.dataSource = new MatTableDataSource<any>(this.trustedUsers);
|
this.dataSource = new MatTableDataSource<any>(this.trustedUsers);
|
||||||
this.dataSource.paginator = this.paginator;
|
this.dataSource.paginator = this.paginator;
|
||||||
this.dataSource.sort = this.sort;
|
this.dataSource.sort = this.sort;
|
||||||
|
this.userInfo = this.authService.getPrivateKeyInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
doFilter(value: string): void {
|
doFilter(value: string): void {
|
||||||
|
Loading…
Reference in New Issue
Block a user