mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
remove remains of GetUserInfo
This commit is contained in:
parent
403826a6d9
commit
8ad64d85a0
@ -24,15 +24,6 @@ export class CreateUserArgs {
|
||||
password: string
|
||||
}
|
||||
|
||||
@ArgsType()
|
||||
export class GetUserInfoArgs {
|
||||
@Field(() => Number)
|
||||
sessionId: number
|
||||
|
||||
@Field(() => String)
|
||||
email: string
|
||||
}
|
||||
|
||||
@ArgsType()
|
||||
export class ChangePasswordArgs {
|
||||
@Field(() => Number)
|
||||
|
||||
@ -2,7 +2,6 @@
|
||||
import { Resolver, Query, Args, Arg } from 'type-graphql'
|
||||
import CONFIG from '../../config'
|
||||
import { CheckUsernameResponse } from '../models/CheckUsernameResponse'
|
||||
import { GetUserInfoResponse } from '../models/UserInfoData'
|
||||
import { LoginResponse } from '../models/LoginResponse'
|
||||
import { LoginViaVerificationCode } from '../models/LoginViaVerificationCode'
|
||||
import { SendPasswordResetEmailResponse } from '../models/SendPasswordResetEmailResponse'
|
||||
@ -11,7 +10,6 @@ import {
|
||||
ChangePasswordArgs,
|
||||
CheckUsernameArgs,
|
||||
CreateUserArgs,
|
||||
GetUserInfoArgs,
|
||||
UnsecureLoginArgs,
|
||||
UpdateUserInfosArgs,
|
||||
} from '../inputs/LoginUserInput'
|
||||
@ -102,17 +100,6 @@ export class UserResolver {
|
||||
return new SendPasswordResetEmailResponse(response.data)
|
||||
}
|
||||
|
||||
@Query(() => GetUserInfoResponse)
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
async getUserInfos(@Args() { sessionId, email }: GetUserInfoArgs): Promise<any> {
|
||||
const payload = {
|
||||
session_id: sessionId,
|
||||
email: email,
|
||||
ask: ['user.first_name', 'user.last_name'],
|
||||
}
|
||||
return apiPost(CONFIG.LOGIN_API_URL + 'getUserInfos', payload)
|
||||
}
|
||||
|
||||
@Query(() => String)
|
||||
async resetPassword(
|
||||
@Args()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user