summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--authfas.module4
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.'".'));