fix: rename lifetime to expiration of pwless link in ImportHumanUserResponse (#2687)

This commit is contained in:
Livio Amstutz
2021-11-15 14:24:45 +01:00
committed by GitHub
parent 8d4b2dcc75
commit ebe2fbe1d5
3 changed files with 7 additions and 4 deletions

View File

@@ -184,8 +184,9 @@ func (s *Server) ImportHumanUser(ctx context.Context, req *mgmt_pb.ImportHumanUs
}
if code != nil {
resp.PasswordlessRegistration = &mgmt_pb.ImportHumanUserResponse_PasswordlessRegistration{
Link: code.Link(s.systemDefaults.Notifications.Endpoints.PasswordlessRegistration),
Lifetime: durationpb.New(code.Expiration),
Link: code.Link(s.systemDefaults.Notifications.Endpoints.PasswordlessRegistration),
Lifetime: durationpb.New(code.Expiration),
Expiration: durationpb.New(code.Expiration),
}
}
return resp, nil