From 83a077d8fe790418cb53e63fbf373235637bd76d Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Mon, 4 Apr 2011 01:31:27 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20=E4=BF=AE=E6=AD=A3=E5=BC=80=E6=94=BE?= =?UTF-8?q?=E6=B3=A8=E5=86=8C=E5=90=8E=EF=BC=8C=E4=B8=89=E6=96=B9=E5=B8=90?= =?UTF-8?q?=E5=8F=B7=E4=B8=BA=E6=B3=A8=E5=86=8C=E7=94=A8=E6=88=B7=E7=99=BB?= =?UTF-8?q?=E9=99=86=E9=94=99=E6=97=A0=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=9B?= =?UTF-8?q?=20Mod:=20Timeline=20=E4=B8=80=E4=BA=9B=E5=B0=8F=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=E6=8A=8A=E5=AD=97=E4=BD=93=E6=94=B9=E5=B0=8F=EF=BC=9B?= =?UTF-8?q?=20Add:=20=E5=8A=A0=E5=85=A5=20Github=E5=B8=90=E5=8F=B7=20?= =?UTF-8?q?=E7=BB=91=E5=AE=9A=E5=8A=9F=E8=83=BD=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/users_controller.rb | 14 ++++++++++---- app/models/user.rb | 13 ++++++++++--- app/views/logs/_log.html.erb | 6 +++--- app/views/shared/_omniauth_links.html.erb | 6 ++++++ config/initializers/omniauth.rb | 1 + public/images/favicons.png | Bin 4895 -> 5276 bytes public/stylesheets/front.css | 2 ++ 7 files changed, 32 insertions(+), 10 deletions(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 9cf940f..5cd3120 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -68,10 +68,11 @@ def unfollow def auth_callback auth = request.env["omniauth.auth"] redirect_to root_path if auth.blank? + provider_name = auth['provider'].gsub(/^t/,"").titleize if current_user Authorization.create_from_hash(auth, current_user) - flash[:notice] = "成功绑定了 #{auth['provider']} 帐号。" + flash[:notice] = "成功绑定了 #{provider_name} 帐号。" redirect_to edit_user_registration_path elsif @user = Authorization.find_from_hash(auth) sign_in @user @@ -80,9 +81,14 @@ def auth_callback else if Setting.allow_register @new_user = Authorization.create_from_hash(auth, current_user) #Create a new user - sign_in @new_user - flash[:notice] = "欢迎来自 #{auth['provider']} 的用户,你的帐号已经创建成功。" - redirect_to "/" + if @new_user.errors.blank? + sign_in @new_user + flash[:notice] = "欢迎来自 #{provider_name} 的用户,你的帐号已经创建成功。" + redirect_to "/" + else + flash[:notice] = "#{provider_name}的帐号提供信息不全,无法直接登陆,请先注册。" + redirect_to "/register" + end else flash[:alert] = "你还没有注册用户。" redirect_back_or_default "/login" diff --git a/app/models/user.rb b/app/models/user.rb index 865477f..0fb6a20 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -55,10 +55,15 @@ def password_required? mount_uploader :avatar, AvatarUploader def self.create_from_hash(auth) + Rails.logger.debug { "---------#{auth}"} user = User.new user.name = auth["user_info"]["name"] user.email = auth['user_info']['email'] - user.save(false) + if user.email.blank? + user.errors.add("Email","三方网站没有提供你的Email信息,无法直接注册。") + return user + end + user.save user.reset_persistence_token! #set persistence_token else sessions will not be created user end @@ -67,8 +72,10 @@ def self.create_from_hash(auth) # 此方法用于处理开始注册是自动生成 slug, 因为没表单,只能自动 def auto_slug if self.slug.blank? - self.slug = self.email.split("@")[0] - self.slug = self.slug.safe_slug + if !self.email.blank? + self.slug = self.email.split("@")[0] + self.slug = self.slug.safe_slug + end # 如果 slug 被 safe_slug 后是空的,就用 id 代替 if self.slug.blank? self.slug = self.id.to_s diff --git a/app/views/logs/_log.html.erb b/app/views/logs/_log.html.erb index 7f23e87..6436009 100644 --- a/app/views/logs/_log.html.erb +++ b/app/views/logs/_log.html.erb @@ -69,9 +69,9 @@ when "UserLog" %>
<% if ["FOLLOW_TOPIC", "UNFOLLOW_TOPIC"].include?(action) %> -
<%= user_name_tag(log.user) %> <%= action == "FOLLOW_TOPIC" ? "关注" : "取消关注" %>了话题 #<%= item.name %>
+
<%= user_name_tag(log.user) %> <%= action == "FOLLOW_TOPIC" ? "关注" : "取消关注" %>了话题 #<%= item.name %>
<% elsif ["FOLLOW_USER", "UNFOLLOW_USER"].include?(action) %> -
<%= user_name_tag(log.user) %> <%= action == "FOLLOW_USER" ? "关注" : "取消关注" %>了 <%= user_name_tag(item) %>
+
<%= user_name_tag(log.user) %> <%= action == "FOLLOW_USER" ? "关注" : "取消关注" %>了 <%= user_name_tag(item) %>
<% else %>
@@ -146,7 +146,7 @@ when "TopicLog" if !item.nil? %>
-
<%= user_name_tag(log.user) %> 创建了话题 #<%= item.name %>
+
<%= user_name_tag(log.user) %> 创建了话题 #<%= item.name %>
<% end diff --git a/app/views/shared/_omniauth_links.html.erb b/app/views/shared/_omniauth_links.html.erb index d79d940..5757809 100644 --- a/app/views/shared/_omniauth_links.html.erb +++ b/app/views/shared/_omniauth_links.html.erb @@ -3,6 +3,7 @@ <% if not current_user %>
  • Google帐号
  • +
  • Github
  • 豆瓣
  • QQ帐号(腾讯微博)
  • 新浪微博
  • @@ -16,6 +17,11 @@ <% else %>
  • Google帐号[已绑定]
  • <% end %> + <% if not current_user.auths.index("github") %> +
  • Github
  • + <% else %> +
  • Github[已绑定]
  • + <% end %> <% if not current_user.auths.index("douban") %>
  • 豆瓣
  • <% else %> diff --git a/config/initializers/omniauth.rb b/config/initializers/omniauth.rb index 65b61ae..f389070 100644 --- a/config/initializers/omniauth.rb +++ b/config/initializers/omniauth.rb @@ -6,4 +6,5 @@ provider :tqq, 'd474e02630a849a5bbbf13bca0f9795f', '279bad9e954cc2b3f9988df534b4be49' provider :t163, 'BMO70rvqyCs0Pby5', 'AwRwtzF1eRPVrZa5rzusedS8JdM79pNj' provider :tsohu, 'XtA4sAn6dpVnqIMNucge', 'URzg4g)Vj9M(9VdMarXIZddgQ8!(5m8cehkH^WB0' + provider :github, '11f1ad7b2ef9263b2ead', '4f07422d1e499126e2fb247dd547b670e01a47d1' end diff --git a/public/images/favicons.png b/public/images/favicons.png index 258b7c34a41c74ea51c8dc6117ae064fd388f214..5885444299048138e966215523bd91b2011e7306 100644 GIT binary patch delta 5251 zcmV-}6nyKSCY&jdNPiSQNkl`V5AEhG>~fPz4PqO!Gu^j>=v zm*QSglvcZ8wWYR?ecIbvr7pFP3zZ_+MM@EaT&opPi$*}vARu5OO9)ve$z++C%=XQ< zoco?LnK2Quz4!ie|H$Dv%*!1xHvr(xqw8-+MrymTAH!PfV;3hGb2^;C9j+>ghxWlt^>V;K(CJijJ8uMXDe^7YHH zYxORCt>$Z=Df?g@oMpyL;{f5JWW?c(TP7pYJEz{sihs<bgS z_ix6JYJc?kK;nuM#Htq$AvhRRLXiXT7G~roIvG4E`v0VH;Hj(TuLAFbHJ&+vD=<4w zR>-i;$A9^}umY!q&uM&GlBD#vRFr=U!|vk)elWunN@PMA10Rf;&~*ljNwBF*Qe;_- z>rq2`VOkK0s13zm{0KAd0xSK}0?A^`A~qy&+NNnhQHEHCVPH}Zhq1Z%5$Gui29^`a zHY|I~Au-FMvuKH77*JIk`um&l{Pq^~_Ia^zL4O2Or_6<6N>J$E^JNDR?_qFwHX@N& zgOX_{iAQRg&3pIl#LcT(wOI5rd)w)_^yp&*gc)|&iIvph2E@BRfNDDr$>_HTLC>T* z58k6nrkN62dV9}KTzjL@W|}LNq9Q1!sTWC7JN~kD8`@i^z~>Ag_xwVH_Z@(zpaw=l zvwv&xgAy|g6NVAOv{`j+TJkcF->;?m`&F673tgT)=;Eo;r;`-qGlYF zim_0PejI>&AI%_9a#I& zGUjtAH0+dwmfxz|%|@0V?I;~%be=a`Pk;XQF~;f-SgH1a#Y`(@9R4sBee!o^aMt;{ zRy?|kRaSk(zIn$ZOiOk%EgA)T@HYp09KKj^)$NRR1T+cV80y07&hS@ce;&fVne*AH1{FEuEudhc%MFp2oiH5^2 ziNHwIbR!UuStrg zW22RPtBwV~ev8Gt1t-}Z-+6DD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%^OWsZbVa5W;n$Zc?FOh-U#q1sgYsRMHBpOb^B9uNR><6vD3uxqrp82`kVQ zI4YSG=8hl{kOBxe94PiWNIJ+SnZ+=9#l5ip_;7%~Q^%OrS&w{OW33Sm@z)3LaF{5J zGDYekAQhdp8jT;$N|+^nZkTdhbNZPi=kM4bWh>tm!6W-O1s6$Z2X*ldPbz8s<|qcw z32#(z+FxfP8T-I*>Rw0=UwokPqb~?S2R6U`;dMhxHl9?PpJ#P+M~jtM%Ab;$)o5|< z@)@yVr*>|~WNcvnM}P8NXd56fKwyBt0D%Dl0|W*L3=kL~FhF2{zyN^(0s{mF2n-My pATU5+fWQEO0RsOI2>g!#0{{*`$I`GH>~#PD002ovPDHLkV1ff#OY;B# diff --git a/public/stylesheets/front.css b/public/stylesheets/front.css index 7f48604..a139878 100644 --- a/public/stylesheets/front.css +++ b/public/stylesheets/front.css @@ -92,6 +92,7 @@ address, blockquote { .ask a.topic:hover { background:#19558D; color:#FFF; } .ask .title { font-size: 1.3em; line-height: 1.2em; margin: 2px 0 5px; } +.ask .small_title { font-size:12px; margin:0px; color:#999; } .ask .title h1 { font-size: 1.2em; line-height: 1.2em; display:inline; } .ask .info { color: #999; margin:3px 0; } .ask .last_answer { margin-top:5px; } @@ -299,6 +300,7 @@ a.user img.normal { width:100px; height:100px; } #omniauth_links li.t163 a { background-position:0 -80px; } #omniauth_links li.tsohu a { background-position:0 -96px; } #omniauth_links li.google a { background-position:0 -48px; } +#omniauth_links li.github a { background-position:0 -113px; } #omniauth_links li span { color:#999; margin-left:3px; } .search_result_dropdown {}