]> code.citadel.org Git - citadel.git/blobdiff - webcit/static/authmethods.js
work on sixel support
[citadel.git] / webcit / static / authmethods.js
index f66f8bcf91cf16ed1adbe1493b142d9eb6b15080..fa17b7351f0764e26c567d1e19d0d749f94c423b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2010-2011, the Citadel Team
+ * Copyright 2010-2017, the Citadel Team
  * Licensed under the GPL V3
  *
  * JavaScript functions which handle various authentication methods.
@@ -38,16 +38,7 @@ function GetLoggedInFirst(destination_url) {
        new Ajax.Request(p, { method: 'get' } );
 
        /* If not logged in, go modal and ask the user to log in first. */
-       new Ajax.Updater(
-               'md-content',
-               'do_template?template=get_logged_in',
-                {
-                        method: 'get',
-                       onSuccess: function() {
-                               toggleModal(1);
-                       }
-                }
-        );
+        toggleModal(1);
 }
 
 
@@ -93,6 +84,7 @@ function ajax_try_username_and_password() {
                        }
                        else {
                                $('login_errmsg').innerHTML = ctdlresult.responseText.substr(4) ;
+                               authtoggle('authbox_userpass');
                        }
                }
        });
@@ -200,7 +192,7 @@ function ajax_try_google() {
 }
 
 
-/****************** GOOGLE ***********************/
+/****************** YAHOO ***********************/
 
 /*
  * Attempt login with Yahoo, called from modal dialog