This reverts commit 54c01e3c6c.
This commit is contained in:
@@ -7,6 +7,7 @@ export class UserData {
|
|||||||
public authentikId: string | null,
|
public authentikId: string | null,
|
||||||
public username: string,
|
public username: string,
|
||||||
public email: string,
|
public email: string,
|
||||||
|
public password: string | null,
|
||||||
public roles: RoleData[],
|
public roles: RoleData[],
|
||||||
public permissions: PermissionData[],
|
public permissions: PermissionData[],
|
||||||
public isActive: boolean,
|
public isActive: boolean,
|
||||||
@@ -21,6 +22,7 @@ export class UserData {
|
|||||||
static create(data: {
|
static create(data: {
|
||||||
username: string;
|
username: string;
|
||||||
email: string;
|
email: string;
|
||||||
|
password?: string | null;
|
||||||
authentikId?: string | null;
|
authentikId?: string | null;
|
||||||
storageQuota?: number;
|
storageQuota?: number;
|
||||||
storageUsed?: number;
|
storageUsed?: number;
|
||||||
@@ -32,6 +34,7 @@ export class UserData {
|
|||||||
data.authentikId || null,
|
data.authentikId || null,
|
||||||
data.username,
|
data.username,
|
||||||
data.email,
|
data.email,
|
||||||
|
data.password ?? null,
|
||||||
[],
|
[],
|
||||||
[],
|
[],
|
||||||
true,
|
true,
|
||||||
@@ -116,6 +119,7 @@ export class UserData {
|
|||||||
authentikId?: string | null;
|
authentikId?: string | null;
|
||||||
username: string;
|
username: string;
|
||||||
email: string;
|
email: string;
|
||||||
|
password: string | null;
|
||||||
roles?: RoleData[];
|
roles?: RoleData[];
|
||||||
permissions?: PermissionData[];
|
permissions?: PermissionData[];
|
||||||
isActive?: boolean;
|
isActive?: boolean;
|
||||||
@@ -130,6 +134,7 @@ export class UserData {
|
|||||||
props.authentikId || null,
|
props.authentikId || null,
|
||||||
props.username,
|
props.username,
|
||||||
props.email,
|
props.email,
|
||||||
|
props.password,
|
||||||
props.roles || [],
|
props.roles || [],
|
||||||
props.permissions || [],
|
props.permissions || [],
|
||||||
props.isActive !== undefined ? props.isActive : true,
|
props.isActive !== undefined ? props.isActive : true,
|
||||||
|
|||||||
Reference in New Issue
Block a user