/*
- * Copyright 2010-2011, the Citadel Team
+ * Copyright 2010-2017, the Citadel Team
* Licensed under the GPL V3
*
* JavaScript functions which handle various authentication methods.
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);
}
}
else {
$('login_errmsg').innerHTML = ctdlresult.responseText.substr(4) ;
+ authtoggle('authbox_userpass');
}
}
});
}
-/****************** GOOGLE ***********************/
+/****************** YAHOO ***********************/
/*
* Attempt login with Yahoo, called from modal dialog