[LON-CAPA-cvs] cvs: loncom /interface createaccount.pm

bisitz lon-capa-cvs-allow@mail.lon-capa.org
Fri, 27 Jun 2008 16:08:42 -0000


bisitz		Fri Jun 27 12:08:42 2008 EDT

  Modified files:              
    /loncom/interface	createaccount.pm 
  Log:
  Use standard text for login/authentication problems and added warning style
  
  
Index: loncom/interface/createaccount.pm
diff -u loncom/interface/createaccount.pm:1.5 loncom/interface/createaccount.pm:1.6
--- loncom/interface/createaccount.pm:1.5	Wed May 14 16:05:07 2008
+++ loncom/interface/createaccount.pm	Fri Jun 27 12:08:42 2008
@@ -3,7 +3,7 @@
 # institutional log-in ID (institutional authentication required - localauth
 #  or kerberos) or an e-mail address.
 #
-# $Id: createaccount.pm,v 1.5 2008/05/14 20:05:07 raeburn Exp $
+# $Id: createaccount.pm,v 1.6 2008/06/27 16:08:42 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -80,7 +80,7 @@
             &Apache::loncommon::end_page();
         $r->print($start_page."\n".'<h2>'.&mt('You are already logged in').'</h2>'.
                   '<p>'.&mt('Please either [_1]continue the current session[_2] or [_3]logout[_4].','<a href="/adm/roles">','</a>','<a href="/adm/logout">','</a>').
-                  '</p><p><a href="/adm/loginproblems.html">'.&mt('Problems?').'</a></p>'.$end_page);
+                  '</p><p><a href="/adm/loginproblems.html">'.&mt('Login problems?').'</a></p>'.$end_page);
        return OK;
     }
     $start_page =
@@ -687,7 +687,10 @@
         if ($authok eq 'authorized') {
             ($output,undef) = &username_check($username,$domain,$domdesc,$courseid);            
         } else {
-            $output = &mt('Not authenticated').' '.&mt('Please check the username and password'); 
+            $output = '<div class="LC_warning">'
+                     .&mt('Username and/or password could not be authenticated.')
+                     .'</div>'
+                     .&mt('Please check the username and password.'); 
         }
     }
     return $output;