Removes the fat ruby-openid gem. Simply use 'gem install ruby-openid' to enable openid support.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2458 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2009-02-12 21:25:50 +00:00
parent 5bdd429162
commit ff9da0bab0
196 changed files with 222 additions and 30207 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ class AccountController < ApplicationController
self.logged_user = nil
else
# Authenticate user
if using_open_id? && Setting.openid?
if Setting.openid? && using_open_id?
open_id_authenticate(params[:openid_url])
else
password_authentication
+4
View File
@@ -140,6 +140,10 @@ class Setting < ActiveRecord::Base
per_page_options.split(%r{[\s,]}).collect(&:to_i).select {|n| n > 0}.sort
end
def self.openid?
Object.const_defined?(:OpenID) && self['openid'].to_s == '1'
end
# Checks if settings have changed since the values were read
# and clears the cache hash if it's the case
# Called once per request
+1 -1
View File
@@ -19,7 +19,7 @@
<%= check_box_tag 'settings[lost_password]', 1, Setting.lost_password? %><%= hidden_field_tag 'settings[lost_password]', 0 %></p>
<p><label><%= l(:setting_openid) %></label>
<%= check_box_tag 'settings[openid]', 1, Setting.openid? %><%= hidden_field_tag 'settings[openid]', 0 %></p>
<%= check_box_tag 'settings[openid]', 1, Setting.openid?, :disabled => !Object.const_defined?(:OpenID) %><%= hidden_field_tag 'settings[openid]', 0 %></p>
</div>
<div style="float:right;">