X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fstatic%2Fauthmethods.js;h=85e9626dbdc4e534219c4aed9bb8b37e3a3159db;hb=a2fb451e089f86df518870ef2f05a75df1caee61;hp=3362a5185b5ed256d9846fd77a06859c5f3565c3;hpb=7d5bf2086001cd7af9a6a60c4e3b3c11828a161e;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); +} + +