diff options
author | Paul W. Frields <stickster@gmail.com> | 2010-07-15 22:18:47 -0400 |
---|---|---|
committer | Paul W. Frields <stickster@gmail.com> | 2010-07-15 22:18:47 -0400 |
commit | 2d6500488fdbdeb91e6f008389de67707f7588ce (patch) | |
tree | 0fd8678deb2ffaa9fd1c1a2458a9db8e39cccd48 /authfas.module | |
parent | 358263a8ef512f112768d216185143daba3ec635 (diff) | |
download | drupal-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.module | 4 |
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; |