Changed api key verifying to client instead of server
This commit is contained in:
@@ -7,11 +7,6 @@ RETURNS Geometry AS $$
|
||||
plpy.debug('Entering _geocode_postalcode_point')
|
||||
plpy.debug('user_id = %s' % user_id)
|
||||
|
||||
#-- Access control
|
||||
#-- TODO: this should be part of cdb python library
|
||||
if user_id == 'publicuser':
|
||||
plpy.error('The api_key must be provided')
|
||||
|
||||
#--TODO: rate limiting check
|
||||
#--TODO: quota check
|
||||
|
||||
@@ -28,11 +23,6 @@ RETURNS Geometry AS $$
|
||||
plpy.debug('Entering _geocode_postalcode_point')
|
||||
plpy.debug('user_id = %s' % user_id)
|
||||
|
||||
#-- Access control
|
||||
#-- TODO: this should be part of cdb python library
|
||||
if user_id == 'publicuser':
|
||||
plpy.error('The api_key must be provided')
|
||||
|
||||
#--TODO: rate limiting check
|
||||
#--TODO: quota check
|
||||
|
||||
@@ -49,11 +39,6 @@ RETURNS Geometry AS $$
|
||||
plpy.debug('Entering _geocode_postalcode_polygon')
|
||||
plpy.debug('user_id = %s' % user_id)
|
||||
|
||||
#-- Access control
|
||||
#-- TODO: this should be part of cdb python library
|
||||
if user_id == 'publicuser':
|
||||
plpy.error('The api_key must be provided')
|
||||
|
||||
#--TODO: rate limiting check
|
||||
#--TODO: quota check
|
||||
|
||||
@@ -70,11 +55,6 @@ RETURNS Geometry AS $$
|
||||
plpy.debug('Entering _geocode_postalcode_point')
|
||||
plpy.debug('user_id = %s' % user_id)
|
||||
|
||||
#-- Access control
|
||||
#-- TODO: this should be part of cdb python library
|
||||
if user_id == 'publicuser':
|
||||
plpy.error('The api_key must be provided')
|
||||
|
||||
#--TODO: rate limiting check
|
||||
#--TODO: quota check
|
||||
|
||||
|
||||
Reference in New Issue
Block a user