Patch #4225 » openid_policy_urls.patch
app/controllers/account_controller.rb | ||
---|---|---|
153 | 153 | |
154 | 154 |
|
155 | 155 |
def open_id_authenticate(openid_url) |
156 |
authenticate_with_open_id(openid_url, :required => [:nickname, :fullname, :email], :return_to => signin_url) do |result, identity_url, registration| |
|
156 |
authenticate_with_open_id(openid_url, :required => [:nickname, :fullname, :email], :return_to => signin_url, :policy_url => Setting.openid_policy_url) do |result, identity_url, registration|
|
|
157 | 157 |
if result.successful? |
158 | 158 |
user = User.find_or_initialize_by_identity_url(identity_url) |
159 | 159 |
if user.new_record? |
app/views/settings/_authentication.rhtml | ||
---|---|---|
29 | 29 |
<%= hidden_field_tag 'settings[openid]', 0 %> |
30 | 30 |
<%= check_box_tag 'settings[openid]', 1, Setting.openid?, :disabled => !Object.const_defined?(:OpenID) %> |
31 | 31 |
</p> |
32 | ||
33 |
<p><label><%= l(:setting_openid_policy_url) %></label> |
|
34 |
<%= text_field_tag 'settings[openid_policy_url]', Setting.openid_policy_url, :size => 60, :disabled => !Object.const_defined?(:OpenID) %> |
|
35 |
</p> |
|
32 | 36 |
</div> |
33 | 37 | |
34 | 38 |
<div style="float:right;"> |
config/locales/de.yml | ||
---|---|---|
814 | 814 |
setting_file_max_size_displayed: Maximale Größe der abgezeigten Textdatei |
815 | 815 |
field_watcher: Beobachter |
816 | 816 |
setting_openid: Erlaube OpenID Anmeldung und Registrierung |
817 |
setting_openid_policy_url: URL zur Datenschutzrichtlinie für OpenID |
|
817 | 818 |
field_identity_url: OpenID URL |
818 | 819 |
label_login_with_open_id_option: oder anmeldung mit OpenID |
819 | 820 |
field_content: Inhalt |
config/locales/en.yml | ||
---|---|---|
310 | 310 |
setting_file_max_size_displayed: Max size of text files displayed inline |
311 | 311 |
setting_repository_log_display_limit: Maximum number of revisions displayed on file log |
312 | 312 |
setting_openid: Allow OpenID login and registration |
313 |
setting_openid_policy_url: OpenID privacy policy URL |
|
313 | 314 |
setting_password_min_length: Minimum password length |
314 | 315 |
setting_new_project_user_role_id: Role given to a non-admin user who creates a project |
315 | 316 |
setting_default_projects_modules: Default enabled modules for new projects |
config/settings.yml | ||
---|---|---|
168 | 168 |
default: 0 |
169 | 169 |
openid: |
170 | 170 |
default: 0 |
171 |
openid_policy_url: |
|
172 |
default: 'http://www.bbbonline.org/privacy/sample_privacy.asp' |