mirror of
https://github.com/immich-app/immich.git
synced 2024-11-15 18:08:48 -07:00
fix(server): user update (#2143)
* fix(server): user update * update dto * generate api * improve validation * add e2e tests for updating user --------- Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com>
This commit is contained in:
parent
aaaf1a6cf8
commit
d04f340b5b
3
mobile/openapi/doc/UpdateUserDto.md
generated
3
mobile/openapi/doc/UpdateUserDto.md
generated
@ -8,14 +8,13 @@ import 'package:openapi/api.dart';
|
|||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**id** | **String** | |
|
|
||||||
**email** | **String** | | [optional]
|
**email** | **String** | | [optional]
|
||||||
**password** | **String** | | [optional]
|
**password** | **String** | | [optional]
|
||||||
**firstName** | **String** | | [optional]
|
**firstName** | **String** | | [optional]
|
||||||
**lastName** | **String** | | [optional]
|
**lastName** | **String** | | [optional]
|
||||||
|
**id** | **String** | |
|
||||||
**isAdmin** | **bool** | | [optional]
|
**isAdmin** | **bool** | | [optional]
|
||||||
**shouldChangePassword** | **bool** | | [optional]
|
**shouldChangePassword** | **bool** | | [optional]
|
||||||
**profileImagePath** | **String** | | [optional]
|
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
37
mobile/openapi/lib/model/update_user_dto.dart
generated
37
mobile/openapi/lib/model/update_user_dto.dart
generated
@ -13,18 +13,15 @@ part of openapi.api;
|
|||||||
class UpdateUserDto {
|
class UpdateUserDto {
|
||||||
/// Returns a new [UpdateUserDto] instance.
|
/// Returns a new [UpdateUserDto] instance.
|
||||||
UpdateUserDto({
|
UpdateUserDto({
|
||||||
required this.id,
|
|
||||||
this.email,
|
this.email,
|
||||||
this.password,
|
this.password,
|
||||||
this.firstName,
|
this.firstName,
|
||||||
this.lastName,
|
this.lastName,
|
||||||
|
required this.id,
|
||||||
this.isAdmin,
|
this.isAdmin,
|
||||||
this.shouldChangePassword,
|
this.shouldChangePassword,
|
||||||
this.profileImagePath,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
String id;
|
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
/// Please note: This property should have been non-nullable! Since the specification file
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
/// does not include a default value (using the "default:" property), however, the generated
|
||||||
@ -57,6 +54,8 @@ class UpdateUserDto {
|
|||||||
///
|
///
|
||||||
String? lastName;
|
String? lastName;
|
||||||
|
|
||||||
|
String id;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
/// Please note: This property should have been non-nullable! Since the specification file
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
/// does not include a default value (using the "default:" property), however, the generated
|
||||||
@ -73,43 +72,32 @@ class UpdateUserDto {
|
|||||||
///
|
///
|
||||||
bool? shouldChangePassword;
|
bool? shouldChangePassword;
|
||||||
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
String? profileImagePath;
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is UpdateUserDto &&
|
bool operator ==(Object other) => identical(this, other) || other is UpdateUserDto &&
|
||||||
other.id == id &&
|
|
||||||
other.email == email &&
|
other.email == email &&
|
||||||
other.password == password &&
|
other.password == password &&
|
||||||
other.firstName == firstName &&
|
other.firstName == firstName &&
|
||||||
other.lastName == lastName &&
|
other.lastName == lastName &&
|
||||||
|
other.id == id &&
|
||||||
other.isAdmin == isAdmin &&
|
other.isAdmin == isAdmin &&
|
||||||
other.shouldChangePassword == shouldChangePassword &&
|
other.shouldChangePassword == shouldChangePassword;
|
||||||
other.profileImagePath == profileImagePath;
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(id.hashCode) +
|
|
||||||
(email == null ? 0 : email!.hashCode) +
|
(email == null ? 0 : email!.hashCode) +
|
||||||
(password == null ? 0 : password!.hashCode) +
|
(password == null ? 0 : password!.hashCode) +
|
||||||
(firstName == null ? 0 : firstName!.hashCode) +
|
(firstName == null ? 0 : firstName!.hashCode) +
|
||||||
(lastName == null ? 0 : lastName!.hashCode) +
|
(lastName == null ? 0 : lastName!.hashCode) +
|
||||||
|
(id.hashCode) +
|
||||||
(isAdmin == null ? 0 : isAdmin!.hashCode) +
|
(isAdmin == null ? 0 : isAdmin!.hashCode) +
|
||||||
(shouldChangePassword == null ? 0 : shouldChangePassword!.hashCode) +
|
(shouldChangePassword == null ? 0 : shouldChangePassword!.hashCode);
|
||||||
(profileImagePath == null ? 0 : profileImagePath!.hashCode);
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'UpdateUserDto[id=$id, email=$email, password=$password, firstName=$firstName, lastName=$lastName, isAdmin=$isAdmin, shouldChangePassword=$shouldChangePassword, profileImagePath=$profileImagePath]';
|
String toString() => 'UpdateUserDto[email=$email, password=$password, firstName=$firstName, lastName=$lastName, id=$id, isAdmin=$isAdmin, shouldChangePassword=$shouldChangePassword]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
json[r'id'] = this.id;
|
|
||||||
if (this.email != null) {
|
if (this.email != null) {
|
||||||
json[r'email'] = this.email;
|
json[r'email'] = this.email;
|
||||||
} else {
|
} else {
|
||||||
@ -130,6 +118,7 @@ class UpdateUserDto {
|
|||||||
} else {
|
} else {
|
||||||
// json[r'lastName'] = null;
|
// json[r'lastName'] = null;
|
||||||
}
|
}
|
||||||
|
json[r'id'] = this.id;
|
||||||
if (this.isAdmin != null) {
|
if (this.isAdmin != null) {
|
||||||
json[r'isAdmin'] = this.isAdmin;
|
json[r'isAdmin'] = this.isAdmin;
|
||||||
} else {
|
} else {
|
||||||
@ -140,11 +129,6 @@ class UpdateUserDto {
|
|||||||
} else {
|
} else {
|
||||||
// json[r'shouldChangePassword'] = null;
|
// json[r'shouldChangePassword'] = null;
|
||||||
}
|
}
|
||||||
if (this.profileImagePath != null) {
|
|
||||||
json[r'profileImagePath'] = this.profileImagePath;
|
|
||||||
} else {
|
|
||||||
// json[r'profileImagePath'] = null;
|
|
||||||
}
|
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -167,14 +151,13 @@ class UpdateUserDto {
|
|||||||
}());
|
}());
|
||||||
|
|
||||||
return UpdateUserDto(
|
return UpdateUserDto(
|
||||||
id: mapValueOfType<String>(json, r'id')!,
|
|
||||||
email: mapValueOfType<String>(json, r'email'),
|
email: mapValueOfType<String>(json, r'email'),
|
||||||
password: mapValueOfType<String>(json, r'password'),
|
password: mapValueOfType<String>(json, r'password'),
|
||||||
firstName: mapValueOfType<String>(json, r'firstName'),
|
firstName: mapValueOfType<String>(json, r'firstName'),
|
||||||
lastName: mapValueOfType<String>(json, r'lastName'),
|
lastName: mapValueOfType<String>(json, r'lastName'),
|
||||||
|
id: mapValueOfType<String>(json, r'id')!,
|
||||||
isAdmin: mapValueOfType<bool>(json, r'isAdmin'),
|
isAdmin: mapValueOfType<bool>(json, r'isAdmin'),
|
||||||
shouldChangePassword: mapValueOfType<bool>(json, r'shouldChangePassword'),
|
shouldChangePassword: mapValueOfType<bool>(json, r'shouldChangePassword'),
|
||||||
profileImagePath: mapValueOfType<String>(json, r'profileImagePath'),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
15
mobile/openapi/test/update_user_dto_test.dart
generated
15
mobile/openapi/test/update_user_dto_test.dart
generated
@ -16,11 +16,6 @@ void main() {
|
|||||||
// final instance = UpdateUserDto();
|
// final instance = UpdateUserDto();
|
||||||
|
|
||||||
group('test UpdateUserDto', () {
|
group('test UpdateUserDto', () {
|
||||||
// String id
|
|
||||||
test('to test the property `id`', () async {
|
|
||||||
// TODO
|
|
||||||
});
|
|
||||||
|
|
||||||
// String email
|
// String email
|
||||||
test('to test the property `email`', () async {
|
test('to test the property `email`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
@ -41,6 +36,11 @@ void main() {
|
|||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// String id
|
||||||
|
test('to test the property `id`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
// bool isAdmin
|
// bool isAdmin
|
||||||
test('to test the property `isAdmin`', () async {
|
test('to test the property `isAdmin`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
@ -51,11 +51,6 @@ void main() {
|
|||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// String profileImagePath
|
|
||||||
test('to test the property `profileImagePath`', () async {
|
|
||||||
// TODO
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ import { UserCountDto } from '@app/domain';
|
|||||||
|
|
||||||
@ApiTags('User')
|
@ApiTags('User')
|
||||||
@Controller('user')
|
@Controller('user')
|
||||||
@UsePipes(new ValidationPipe({ transform: true }))
|
@UsePipes(new ValidationPipe({ transform: true, whitelist: true }))
|
||||||
export class UserController {
|
export class UserController {
|
||||||
constructor(private service: UserService) {}
|
constructor(private service: UserService) {}
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ import { Test, TestingModule } from '@nestjs/testing';
|
|||||||
import { INestApplication } from '@nestjs/common';
|
import { INestApplication } from '@nestjs/common';
|
||||||
import request from 'supertest';
|
import request from 'supertest';
|
||||||
import { clearDb, authCustom } from './test-utils';
|
import { clearDb, authCustom } from './test-utils';
|
||||||
import { CreateUserDto, UserService, AuthUserDto } from '@app/domain';
|
import { CreateUserDto, UserService, AuthUserDto, UserResponseDto } from '@app/domain';
|
||||||
import { DataSource } from 'typeorm';
|
import { DataSource } from 'typeorm';
|
||||||
import { AuthService } from '@app/domain';
|
import { AuthService } from '@app/domain';
|
||||||
import { AppModule } from '../src/app.module';
|
import { AppModule } from '../src/app.module';
|
||||||
@ -39,10 +39,11 @@ describe('User', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('with auth', () => {
|
describe('with admin auth', () => {
|
||||||
let userService: UserService;
|
let userService: UserService;
|
||||||
let authService: AuthService;
|
let authService: AuthService;
|
||||||
let authUser: AuthUserDto;
|
let authUser: AuthUserDto;
|
||||||
|
let userOne: UserResponseDto;
|
||||||
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
const builder = Test.createTestingModule({ imports: [AppModule] });
|
const builder = Test.createTestingModule({ imports: [AppModule] });
|
||||||
@ -69,7 +70,8 @@ describe('User', () => {
|
|||||||
password: '1234',
|
password: '1234',
|
||||||
});
|
});
|
||||||
authUser = { ...adminSignupResponseDto, isAdmin: true }; // TODO: find out why adminSignUp doesn't have isAdmin (maybe can just return UserResponseDto)
|
authUser = { ...adminSignupResponseDto, isAdmin: true }; // TODO: find out why adminSignUp doesn't have isAdmin (maybe can just return UserResponseDto)
|
||||||
await Promise.allSettled([
|
|
||||||
|
[userOne] = await Promise.all([
|
||||||
_createUser(userService, {
|
_createUser(userService, {
|
||||||
firstName: 'one',
|
firstName: 'one',
|
||||||
lastName: 'test',
|
lastName: 'test',
|
||||||
@ -121,6 +123,67 @@ describe('User', () => {
|
|||||||
);
|
);
|
||||||
expect(body).toEqual(expect.not.arrayContaining([expect.objectContaining({ email: authUserEmail })]));
|
expect(body).toEqual(expect.not.arrayContaining([expect.objectContaining({ email: authUserEmail })]));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('disallows admin user from creating a second admin account', async () => {
|
||||||
|
const { status } = await request(app.getHttpServer())
|
||||||
|
.put('/user')
|
||||||
|
.send({
|
||||||
|
...userOne,
|
||||||
|
isAdmin: true,
|
||||||
|
});
|
||||||
|
expect(status).toEqual(400);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('ignores updates to createdAt, updatedAt and deletedAt', async () => {
|
||||||
|
const { status, body } = await request(app.getHttpServer())
|
||||||
|
.put('/user')
|
||||||
|
.send({
|
||||||
|
...userOne,
|
||||||
|
createdAt: '2023-01-01T00:00:00.000Z',
|
||||||
|
updatedAt: '2023-01-01T00:00:00.000Z',
|
||||||
|
deletedAt: '2023-01-01T00:00:00.000Z',
|
||||||
|
});
|
||||||
|
expect(status).toEqual(200);
|
||||||
|
expect(body).toStrictEqual({
|
||||||
|
...userOne,
|
||||||
|
createdAt: new Date(userOne.createdAt).toISOString(),
|
||||||
|
updatedAt: expect.anything(),
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
it('ignores updates to profileImagePath', async () => {
|
||||||
|
const { status, body } = await request(app.getHttpServer())
|
||||||
|
.put('/user')
|
||||||
|
.send({
|
||||||
|
...userOne,
|
||||||
|
profileImagePath: 'invalid.jpg',
|
||||||
|
});
|
||||||
|
expect(status).toEqual(200);
|
||||||
|
expect(body).toStrictEqual({
|
||||||
|
...userOne,
|
||||||
|
createdAt: new Date(userOne.createdAt).toISOString(),
|
||||||
|
updatedAt: expect.anything(),
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
it('allows to update first and last name', async () => {
|
||||||
|
const { status, body } = await request(app.getHttpServer())
|
||||||
|
.put('/user')
|
||||||
|
.send({
|
||||||
|
...userOne,
|
||||||
|
firstName: 'newFirstName',
|
||||||
|
lastName: 'newLastName',
|
||||||
|
});
|
||||||
|
|
||||||
|
expect(status).toEqual(200);
|
||||||
|
expect(body).toMatchObject({
|
||||||
|
...userOne,
|
||||||
|
createdAt: new Date(userOne.createdAt).toISOString(),
|
||||||
|
updatedAt: expect.anything(),
|
||||||
|
firstName: 'newFirstName',
|
||||||
|
lastName: 'newLastName',
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -4812,29 +4812,31 @@
|
|||||||
"UpdateUserDto": {
|
"UpdateUserDto": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"id": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"email": {
|
"email": {
|
||||||
"type": "string"
|
"type": "string",
|
||||||
|
"example": "testuser@email.com"
|
||||||
},
|
},
|
||||||
"password": {
|
"password": {
|
||||||
"type": "string"
|
"type": "string",
|
||||||
|
"example": "password"
|
||||||
},
|
},
|
||||||
"firstName": {
|
"firstName": {
|
||||||
"type": "string"
|
"type": "string",
|
||||||
|
"example": "John"
|
||||||
},
|
},
|
||||||
"lastName": {
|
"lastName": {
|
||||||
"type": "string"
|
"type": "string",
|
||||||
|
"example": "Doe"
|
||||||
|
},
|
||||||
|
"id": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "uuid"
|
||||||
},
|
},
|
||||||
"isAdmin": {
|
"isAdmin": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
"shouldChangePassword": {
|
"shouldChangePassword": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
|
||||||
"profileImagePath": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
|
@ -1,28 +1,18 @@
|
|||||||
import { IsEmail, IsNotEmpty, IsOptional } from 'class-validator';
|
import { IsBoolean, IsNotEmpty, IsOptional, IsUUID } from 'class-validator';
|
||||||
|
import { CreateUserDto } from './create-user.dto';
|
||||||
|
import { ApiProperty, PartialType } from '@nestjs/swagger';
|
||||||
|
|
||||||
export class UpdateUserDto {
|
export class UpdateUserDto extends PartialType(CreateUserDto) {
|
||||||
@IsNotEmpty()
|
@IsNotEmpty()
|
||||||
|
@IsUUID('4')
|
||||||
|
@ApiProperty({ format: 'uuid' })
|
||||||
id!: string;
|
id!: string;
|
||||||
|
|
||||||
@IsEmail()
|
|
||||||
@IsOptional()
|
|
||||||
email?: string;
|
|
||||||
|
|
||||||
@IsOptional()
|
|
||||||
password?: string;
|
|
||||||
|
|
||||||
@IsOptional()
|
|
||||||
firstName?: string;
|
|
||||||
|
|
||||||
@IsOptional()
|
|
||||||
lastName?: string;
|
|
||||||
|
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
|
@IsBoolean()
|
||||||
isAdmin?: boolean;
|
isAdmin?: boolean;
|
||||||
|
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
|
@IsBoolean()
|
||||||
shouldChangePassword?: boolean;
|
shouldChangePassword?: boolean;
|
||||||
|
|
||||||
@IsOptional()
|
|
||||||
profileImagePath?: string;
|
|
||||||
}
|
}
|
||||||
|
@ -21,12 +21,16 @@ export class UserCore {
|
|||||||
constructor(private userRepository: IUserRepository, private cryptoRepository: ICryptoRepository) {}
|
constructor(private userRepository: IUserRepository, private cryptoRepository: ICryptoRepository) {}
|
||||||
|
|
||||||
async updateUser(authUser: AuthUserDto, id: string, dto: Partial<UserEntity>): Promise<UserEntity> {
|
async updateUser(authUser: AuthUserDto, id: string, dto: Partial<UserEntity>): Promise<UserEntity> {
|
||||||
if (!(authUser.isAdmin || authUser.id === id)) {
|
if (!authUser.isAdmin && authUser.id !== id) {
|
||||||
throw new ForbiddenException('You are not allowed to update this user');
|
throw new ForbiddenException('You are not allowed to update this user');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dto.isAdmin && authUser.isAdmin && authUser.id !== id) {
|
if (!authUser.isAdmin) {
|
||||||
throw new BadRequestException('Admin user exists');
|
// Users can never update the isAdmin property.
|
||||||
|
delete dto.isAdmin;
|
||||||
|
} else if (dto.isAdmin && authUser.id !== id) {
|
||||||
|
// Admin cannot create another admin.
|
||||||
|
throw new BadRequestException('The server already has an admin');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dto.email) {
|
if (dto.email) {
|
||||||
|
@ -90,6 +90,7 @@ export class UserService {
|
|||||||
if (!user) {
|
if (!user) {
|
||||||
throw new NotFoundException('User not found');
|
throw new NotFoundException('User not found');
|
||||||
}
|
}
|
||||||
|
|
||||||
const updatedUser = await this.userCore.updateUser(authUser, dto.id, dto);
|
const updatedUser = await this.userCore.updateUser(authUser, dto.id, dto);
|
||||||
return mapUser(updatedUser);
|
return mapUser(updatedUser);
|
||||||
}
|
}
|
||||||
|
18
web/src/api/open-api/api.ts
generated
18
web/src/api/open-api/api.ts
generated
@ -2292,12 +2292,6 @@ export interface UpdateTagDto {
|
|||||||
* @interface UpdateUserDto
|
* @interface UpdateUserDto
|
||||||
*/
|
*/
|
||||||
export interface UpdateUserDto {
|
export interface UpdateUserDto {
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof UpdateUserDto
|
|
||||||
*/
|
|
||||||
'id': string;
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@ -2322,6 +2316,12 @@ export interface UpdateUserDto {
|
|||||||
* @memberof UpdateUserDto
|
* @memberof UpdateUserDto
|
||||||
*/
|
*/
|
||||||
'lastName'?: string;
|
'lastName'?: string;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {string}
|
||||||
|
* @memberof UpdateUserDto
|
||||||
|
*/
|
||||||
|
'id': string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
@ -2334,12 +2334,6 @@ export interface UpdateUserDto {
|
|||||||
* @memberof UpdateUserDto
|
* @memberof UpdateUserDto
|
||||||
*/
|
*/
|
||||||
'shouldChangePassword'?: boolean;
|
'shouldChangePassword'?: boolean;
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof UpdateUserDto
|
|
||||||
*/
|
|
||||||
'profileImagePath'?: string;
|
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user