/[drupal]/contributions/modules/services/auth/services_keyauth/services_keyauth.inc
ViewVC logotype

Diff of /contributions/modules/services/auth/services_keyauth/services_keyauth.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.8.2.4, Thu Oct 15 02:59:56 2009 UTC revision 1.1.2.8.2.5, Sat Oct 31 20:58:11 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: services_keyauth.inc,v 1.1.2.8.2.3 2009/09/05 13:57:58 marcingy Exp $  // $Id: services_keyauth.inc,v 1.1.2.8.2.4 2009/10/15 02:59:56 marcingy Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 157  function _services_keyauth_authenticate_ Line 157  function _services_keyauth_authenticate_
157      if (db_result(db_query("SELECT count(*) FROM {services_timestamp_nonce}      if (db_result(db_query("SELECT count(*) FROM {services_timestamp_nonce}
158          WHERE domain = '%s' AND nonce = '%s'",          WHERE domain = '%s' AND nonce = '%s'",
159          $domain, $nonce))) {          $domain, $nonce))) {
160        return services_error(t('Token has been used previously for a request. Re-try with another nonce key.', 401));        return services_error(t('Token has been used previously for a request. Re-try with another nonce key.'), 401);
161      }      }
162      else{      else{
163        db_query("INSERT INTO {services_timestamp_nonce} (domain, timestamp, nonce)        db_query("INSERT INTO {services_timestamp_nonce} (domain, timestamp, nonce)

Legend:
Removed from v.1.1.2.8.2.4  
changed lines
  Added in v.1.1.2.8.2.5

  ViewVC Help
Powered by ViewVC 1.1.2