mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
Transfer repository from Gitlab
This commit is contained in:
9
server/src/api-v1/auth/dto/jwt-payload.dto.ts
Normal file
9
server/src/api-v1/auth/dto/jwt-payload.dto.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export class JwtPayloadDto {
|
||||
constructor(userId: string, email: string) {
|
||||
this.userId = userId;
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
userId: string;
|
||||
email: string;
|
||||
}
|
||||
9
server/src/api-v1/auth/dto/login-credential.dto.ts
Normal file
9
server/src/api-v1/auth/dto/login-credential.dto.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { IsNotEmpty } from 'class-validator';
|
||||
|
||||
export class LoginCredentialDto {
|
||||
@IsNotEmpty()
|
||||
email: string;
|
||||
|
||||
@IsNotEmpty()
|
||||
password: string;
|
||||
}
|
||||
9
server/src/api-v1/auth/dto/sign-up.dto.ts
Normal file
9
server/src/api-v1/auth/dto/sign-up.dto.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { IsNotEmpty } from 'class-validator';
|
||||
|
||||
export class SignUpDto {
|
||||
@IsNotEmpty()
|
||||
email: string;
|
||||
|
||||
@IsNotEmpty()
|
||||
password: string;
|
||||
}
|
||||
Reference in New Issue
Block a user