##// END OF EJS Templates
Added the ability to login via OpenID....
Added the ability to login via OpenID. * Refactored AccountController#login to use either password or openid based authentication * Extracted AccountController#successful_authentication to setup a user's session cookies and redirect * Implemented the start of AccountController#open_id_authentication which will check with the OpenID server and perform authentication. * Added text field for the OpenID url to /login * Added identity_url for OpenID to the user forms. * Added option to login with OpenID to the register form. * Added a root url route, which is used by the OpenID plugin #699 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2442 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r2381:896e64b759ae
r2381:896e64b759ae
Show More
register.rhtml
42 lines | 1.6 KiB | text/html+ruby | RhtmlLexer
Eric Davis
Added the ability to login via OpenID....
r2381 <h2><%=l(:label_register)%> <%=link_to l(:label_login_with_open_id_option), signin_url %></h2>
Jean-Philippe Lang
0.3 unstable...
r10
Jean-Philippe Lang
deprecated start_form_tag replaced by form_tag...
r181 <% form_tag({:action => 'register'}, :class => "tabular") do %>
Jean-Philippe Lang
0.3 unstable...
r10 <%= error_messages_for 'user' %>
<div class="box">
<!--[form:user]-->
Jean-Philippe Lang
Improved on-the-fly account creation. If some attributes are missing (eg. not present in the LDAP) or are invalid, the registration form is displayed so that the user is able to fill or fix these attributes....
r1661 <% if @user.auth_source_id.nil? %>
Jean-Philippe Lang
tables and forms redesign,...
r19 <p><label for="user_login"><%=l(:field_login)%> <span class="required">*</span></label>
Jean-Philippe Lang
Improved on-the-fly account creation. If some attributes are missing (eg. not present in the LDAP) or are invalid, the registration form is displayed so that the user is able to fill or fix these attributes....
r1661 <%= text_field 'user', 'login', :size => 25 %></p>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330
Jean-Philippe Lang
tables and forms redesign,...
r19 <p><label for="password"><%=l(:field_password)%> <span class="required">*</span></label>
Jean-Philippe Lang
Removed the 12 characters limit on passwords....
r914 <%= password_field_tag 'password', nil, :size => 25 %><br />
<em><%= l(:text_caracters_minimum, 4) %></em></p>
Jean-Philippe Lang
0.3 unstable...
r10
Jean-Philippe Lang
tables and forms redesign,...
r19 <p><label for="password_confirmation"><%=l(:field_password_confirmation)%> <span class="required">*</span></label>
Jean-Philippe Lang
0.3 unstable...
r10 <%= password_field_tag 'password_confirmation', nil, :size => 25 %></p>
Jean-Philippe Lang
Improved on-the-fly account creation. If some attributes are missing (eg. not present in the LDAP) or are invalid, the registration form is displayed so that the user is able to fill or fix these attributes....
r1661 <% end %>
Jean-Philippe Lang
0.3 unstable...
r10
Jean-Philippe Lang
tables and forms redesign,...
r19 <p><label for="user_firstname"><%=l(:field_firstname)%> <span class="required">*</span></label>
Jean-Philippe Lang
0.3 unstable...
r10 <%= text_field 'user', 'firstname' %></p>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330
Jean-Philippe Lang
tables and forms redesign,...
r19 <p><label for="user_lastname"><%=l(:field_lastname)%> <span class="required">*</span></label>
Jean-Philippe Lang
0.3 unstable...
r10 <%= text_field 'user', 'lastname' %></p>
Jean-Philippe Lang
tables and forms redesign,...
r19 <p><label for="user_mail"><%=l(:field_mail)%> <span class="required">*</span></label>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <%= text_field 'user', 'mail' %></p>
Jean-Philippe Lang
tables and forms redesign,...
r19 <p><label for="user_language"><%=l(:field_language)%></label>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <%= select("user", "language", lang_options_for_select) %></p>
Eric Davis
Added the ability to login via OpenID....
r2381 <p><label for="user_identity_url"><%=l(:field_identity_url)%></label>
<%= text_field 'user', 'identity_url' %></p>
Jean-Philippe Lang
User custom fields can now be set as editable so that users can edit them on 'My account'....
r2274 <% @user.custom_field_values.select {|v| v.editable? || v.required?}.each do |value| %>
Jean-Philippe Lang
Custom fields refactoring: most of code moved from controllers to models (using new module ActsAsCustomizable)....
r1578 <p><%= custom_field_tag_with_label :user, value %></p>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <% end %>
Jean-Philippe Lang
0.3 unstable...
r10 <!--[eoform:user]-->
</div>
Jean-Philippe Lang
Localization plugin removed (replaced with GLoc)...
r12 <%= submit_tag l(:button_submit) %>
Jean-Philippe Lang
deprecated start_form_tag replaced by form_tag...
r181 <% end %>