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
|
password: string
|
||||||
}
|
}
|
||||||
|
|
||||||
@ArgsType()
|
|
||||||
export class GetUserInfoArgs {
|
|
||||||
@Field(() => Number)
|
|
||||||
sessionId: number
|
|
||||||
|
|
||||||
@Field(() => String)
|
|
||||||
email: string
|
|
||||||
}
|
|
||||||
|
|
||||||
@ArgsType()
|
@ArgsType()
|
||||||
export class ChangePasswordArgs {
|
export class ChangePasswordArgs {
|
||||||
@Field(() => Number)
|
@Field(() => Number)
|
||||||
|
|||||||
@ -2,7 +2,6 @@
|
|||||||
import { Resolver, Query, Args, Arg } from 'type-graphql'
|
import { Resolver, Query, Args, Arg } from 'type-graphql'
|
||||||
import CONFIG from '../../config'
|
import CONFIG from '../../config'
|
||||||
import { CheckUsernameResponse } from '../models/CheckUsernameResponse'
|
import { CheckUsernameResponse } from '../models/CheckUsernameResponse'
|
||||||
import { GetUserInfoResponse } from '../models/UserInfoData'
|
|
||||||
import { LoginResponse } from '../models/LoginResponse'
|
import { LoginResponse } from '../models/LoginResponse'
|
||||||
import { LoginViaVerificationCode } from '../models/LoginViaVerificationCode'
|
import { LoginViaVerificationCode } from '../models/LoginViaVerificationCode'
|
||||||
import { SendPasswordResetEmailResponse } from '../models/SendPasswordResetEmailResponse'
|
import { SendPasswordResetEmailResponse } from '../models/SendPasswordResetEmailResponse'
|
||||||
@ -11,7 +10,6 @@ import {
|
|||||||
ChangePasswordArgs,
|
ChangePasswordArgs,
|
||||||
CheckUsernameArgs,
|
CheckUsernameArgs,
|
||||||
CreateUserArgs,
|
CreateUserArgs,
|
||||||
GetUserInfoArgs,
|
|
||||||
UnsecureLoginArgs,
|
UnsecureLoginArgs,
|
||||||
UpdateUserInfosArgs,
|
UpdateUserInfosArgs,
|
||||||
} from '../inputs/LoginUserInput'
|
} from '../inputs/LoginUserInput'
|
||||||
@ -102,17 +100,6 @@ export class UserResolver {
|
|||||||
return new SendPasswordResetEmailResponse(response.data)
|
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)
|
@Query(() => String)
|
||||||
async resetPassword(
|
async resetPassword(
|
||||||
@Args()
|
@Args()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user