use omniauth-openid to replace google id

This commit is contained in:
xdite
2013-02-12 14:51:44 +08:00
committed by xdite
parent 6e74b4fb0c
commit be3d036084
6 changed files with 65 additions and 162 deletions

View File

@@ -60,9 +60,9 @@ window.Discourse.LoginView = window.Discourse.ModalBodyView.extend Discourse.Pre
top = @get('lastY') - 200
if(provider == "yahoo")
@set("authenticate", 'yahoo')
window.open("/user_open_ids/frame?provider=yahoo", "_blank", "menubar=no,status=no,height=400,width=800,left=" + left + ",top=" + top)
window.open("/auth/yahoo", "_blank", "menubar=no,status=no,height=400,width=800,left=" + left + ",top=" + top)
else
window.open("/user_open_ids/frame?provider=google", "_blank", "menubar=no,status=no,height=500,width=850,left=" + left + ",top=" + top)
window.open("/auth/google", "_blank", "menubar=no,status=no,height=500,width=850,left=" + left + ",top=" + top)
@set("authenticate", 'google')
authenticationComplete: (options)->