Browse Source

Remove alias

pull/1218/head
Thomas 3 years ago
parent
commit
0c4e30b1d4
  1. 2
      apps/api/src/app/auth/web-auth.service.ts
  2. 4
      apps/api/src/app/user/user.service.ts

2
apps/api/src/app/auth/web-auth.service.ts

@ -54,7 +54,7 @@ export class WebAuthService {
rpName: 'Ghostfolio', rpName: 'Ghostfolio',
rpID: this.rpID, rpID: this.rpID,
userID: user.id, userID: user.id,
userName: user.alias, userName: '',
timeout: 60000, timeout: 60000,
attestationType: 'indirect', attestationType: 'indirect',
authenticatorSelection: { authenticatorSelection: {

4
apps/api/src/app/user/user.service.ts

@ -43,7 +43,7 @@ export class UserService {
include: { include: {
User: true User: true
}, },
orderBy: { User: { alias: 'asc' } }, orderBy: { alias: 'asc' },
where: { GranteeUser: { id } } where: { GranteeUser: { id } }
}); });
let tags = await this.tagService.getByUser(id); let tags = await this.tagService.getByUser(id);
@ -98,7 +98,6 @@ export class UserService {
const { const {
accessToken, accessToken,
Account, Account,
alias,
authChallenge, authChallenge,
createdAt, createdAt,
id, id,
@ -116,7 +115,6 @@ export class UserService {
const user: UserWithSettings = { const user: UserWithSettings = {
accessToken, accessToken,
Account, Account,
alias,
authChallenge, authChallenge,
createdAt, createdAt,
id, id,

Loading…
Cancel
Save