summaryrefslogtreecommitdiffstats
path: root/authfas.module
diff options
context:
space:
mode:
authorPaul W. Frields <stickster@gmail.com>2010-07-15 22:18:47 -0400
committerPaul W. Frields <stickster@gmail.com>2010-07-15 22:18:47 -0400
commit2d6500488fdbdeb91e6f008389de67707f7588ce (patch)
tree0fd8678deb2ffaa9fd1c1a2458a9db8e39cccd48 /authfas.module
parent358263a8ef512f112768d216185143daba3ec635 (diff)
downloaddrupal-authfas-6x-2d6500488fdbdeb91e6f008389de67707f7588ce.tar.gz
drupal-authfas-6x-2d6500488fdbdeb91e6f008389de67707f7588ce.tar.xz
drupal-authfas-6x-2d6500488fdbdeb91e6f008389de67707f7588ce.zip
Improve messages on validation true/false
Diffstat (limited to 'authfas.module')
-rw-r--r--authfas.module4
1 files changed, 3 insertions, 1 deletions
diff --git a/authfas.module b/authfas.module
index ed3ac18..80501e2 100644
--- a/authfas.module
+++ b/authfas.module
@@ -147,8 +147,10 @@ function authfas_admin_validate($form, &$form_state) {
curl_close ($ch);
if (!isset($response["help"])) {
- form_set_error("authfas_fasurl", 'No JSON interface present at https://'.$fasurl.'/json/ or could not verify username "'.$username.'".');
+ form_set_error("authfas_fasurl", t('No JSON interface present at https://'.$fasurl.'/json/ or could not verify username "'.$username.'".'));
return FALSE;
+ } else {
+ drupal_set_message(t('Authentication to FAS was successful.'));
}
}
return TRUE;