From 2d6500488fdbdeb91e6f008389de67707f7588ce Mon Sep 17 00:00:00 2001 From: "Paul W. Frields" Date: Thu, 15 Jul 2010 22:18:47 -0400 Subject: Improve messages on validation true/false --- authfas.module | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'authfas.module') 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; -- cgit