Skip to content
Snippets Groups Projects
Commit ec8ffa9b authored by Jano Hendriks's avatar Jano Hendriks
Browse files

Add confirm forgot password function for cognito

parent 33fd5611
No related branches found
No related tags found
No related merge requests found
......@@ -90,6 +90,18 @@ func SetUserPassword(pool string, username string, password string) (*cognitoide
return output, err
}
func ConfirmPasswordReset(appClientID string, username string, password string, confirmationCode string) (*cognitoidentityprovider.ConfirmForgotPasswordOutput, error) {
input := cognitoidentityprovider.ConfirmForgotPasswordInput{
ClientId: &appClientID,
ConfirmationCode: &confirmationCode,
Password: &password,
Username: &username,
}
output, err := CognitoService.ConfirmForgotPassword(&input)
logs.Info("output", output)
return output, err
}
// FOR API LOGS
func DetermineAuthType(identity events.APIGatewayRequestIdentity) *string {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment