X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fstatic%2Fauthmethods.js;fp=webcit%2Fstatic%2Fauthmethods.js;h=85e9626dbdc4e534219c4aed9bb8b37e3a3159db;hb=ad997b56ffb5979af4c7a951590e8e0648e28d5b;hp=3362a5185b5ed256d9846fd77a06859c5f3565c3;hpb=52bb88b47117af305c56fba1f764945aa0112a50;p=citadel.git diff --git a/webcit/static/authmethods.js b/webcit/static/authmethods.js index 3362a5185..85e9626db 100644 --- a/webcit/static/authmethods.js +++ b/webcit/static/authmethods.js @@ -58,6 +58,8 @@ function authtoggle(show_which_div) { $('authbox_userpass').style.display = 'none'; $('authbox_newuser').style.display = 'none'; $('authbox_openid').style.display = 'none'; + $('authbox_google').style.display = 'none'; + $('authbox_yahoo').style.display = 'none'; $(show_which_div).style.display = 'block'; } @@ -182,3 +184,27 @@ function openid_onkeypress(e) { } +/****************** GOOGLE ***********************/ + +/* + * Attempt login with Google, called from modal dialog + */ +function ajax_try_google() { + $('login_errmsg').innerHTML = ""; + openid_url = encodeURI("https://www.google.com/accounts/o8/id"); + do_auth_popout("openid_login?openid_url=" + openid_url); +} + + +/****************** GOOGLE ***********************/ + +/* + * Attempt login with Google, called from modal dialog + */ +function ajax_try_yahoo() { + $('login_errmsg').innerHTML = ""; + openid_url = encodeURI("http://yahoo.com"); + do_auth_popout("openid_login?openid_url=" + openid_url); +} + +