mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
send email for password reset
This commit is contained in:
parent
ae4edf4605
commit
2ab92d1a53
@ -1,5 +1,5 @@
|
||||
// import jwt from 'jsonwebtoken'
|
||||
import { Resolver, Query, /* Mutation, */ Args } from 'type-graphql'
|
||||
import { Resolver, Query, /* Mutation, */ Args, Arg } from 'type-graphql'
|
||||
import CONFIG from '../../config'
|
||||
import { LoginResponse } from '../models/User'
|
||||
import { UnsecureLoginArgs } from '../inputs/LoginUserInput'
|
||||
@ -43,6 +43,16 @@ export class UserResolver {
|
||||
},
|
||||
}
|
||||
|
||||
// forgot password request
|
||||
/*
|
||||
@Query(() => null)
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
async sendEmail(@Arg() email: String): Promise<any> {
|
||||
const result = await apiPost(CONFIG.LOGIN_API_URL + 'sendEmail', { email })
|
||||
return
|
||||
}
|
||||
*/
|
||||
|
||||
// create and return the json web token
|
||||
// The expire doesn't help us here. The client needs to track when the token expires on its own,
|
||||
// since every action prolongs the time the session is valid.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user