Added missing username property to the responseuser

ref #39
This commit is contained in:
Nicolai Ort 2020-12-20 17:19:33 +01:00
parent b55d210aff
commit cf583a22fa
1 changed files with 8 additions and 0 deletions

View File

@ -47,6 +47,13 @@ export class ResponseUser extends ResponsePrincipal {
@IsString()
email?: string;
/**
* The user's username.
* Optional.
*/
@IsString()
username?: string;
/**
* is user enabled?
*/
@ -81,6 +88,7 @@ export class ResponseUser extends ResponsePrincipal {
this.lastname = user.lastname;
this.phone = user.phone;
this.email = user.email;
this.username = user.username;
this.enabled = user.enabled;
this.profilePic = user.profilePic;
this.groups = user.groups;