mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
remove model for LoginResponse
This commit is contained in:
parent
d1cd8fe724
commit
088f61c6ac
@ -1,20 +0,0 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
||||||
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
|
|
||||||
import { ObjectType, Field } from 'type-graphql'
|
|
||||||
import { User } from './User'
|
|
||||||
|
|
||||||
// temporaray solution until we have JWT implemented
|
|
||||||
|
|
||||||
@ObjectType()
|
|
||||||
export class LoginResponse {
|
|
||||||
constructor(json: any) {
|
|
||||||
this.sessionId = json.session_id
|
|
||||||
this.user = new User(json.user)
|
|
||||||
}
|
|
||||||
|
|
||||||
@Field(() => Number)
|
|
||||||
sessionId: number
|
|
||||||
|
|
||||||
@Field(() => User)
|
|
||||||
user: User
|
|
||||||
}
|
|
||||||
Loading…
x
Reference in New Issue
Block a user