diff options
author | Paul W. Frields <stickster@gmail.com> | 2010-07-17 17:23:03 -0400 |
---|---|---|
committer | Paul W. Frields <stickster@gmail.com> | 2010-07-17 17:23:03 -0400 |
commit | b35307dee29ab18b8fcba7e0b42c4e51b6ebdf8b (patch) | |
tree | ba0c5f768317c81d8e5ec5d6b3a003630a3daf2a | |
parent | 8d331c7b5f81d05b1ca7682baecc9b9120e9ecc8 (diff) | |
download | drupal-authfas-6x-b35307dee29ab18b8fcba7e0b42c4e51b6ebdf8b.tar.gz drupal-authfas-6x-b35307dee29ab18b8fcba7e0b42c4e51b6ebdf8b.tar.xz drupal-authfas-6x-b35307dee29ab18b8fcba7e0b42c4e51b6ebdf8b.zip |
Change login function name
-rw-r--r-- | authfas.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/authfas.module b/authfas.module index 1000b9f..5a7963f 100644 --- a/authfas.module +++ b/authfas.module @@ -117,7 +117,7 @@ function authfas_menu() { return $items; } -function fas_login($username, $password, $url, $headers) { +function authfas_fas_login($username, $password, $url, $headers) { $username = strtolower($username); $ch = curl_init(); @@ -149,7 +149,7 @@ function authfas_admin_validate($form, &$form_state) { $password = $form_state['values']['fas_password']; if (($username != '') and ($password != '')) { - $response = fas_login($username, $password, 'https://'.$fasurl.'/json/', 'Accept: application/json;'); + $response = authfas_fas_login($username, $password, 'https://'.$fasurl.'/json/', 'Accept: application/json;'); if (!isset($response["help"])) { form_set_error("authfas_fasurl", t('No JSON interface present at https://'.$fasurl.'/json/ or could not verify username "'.$username.'".')); |