diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-07-19 10:47:19 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-07-19 10:47:19 +0000 |
commit | eb1d969237a9ed1bb41c6e10d5a9eb073f297e95 (patch) | |
tree | 53f88db3c4e26b74979f3d16626ed066cb7f77ae /app/views/account | |
parent | 93201e7386eb8bb2c69f110d934f04feb81ffe93 (diff) | |
download | redmine-eb1d969237a9ed1bb41c6e10d5a9eb073f297e95.tar.gz redmine-eb1d969237a9ed1bb41c6e10d5a9eb073f297e95.zip |
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.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1678 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/account')
-rw-r--r-- | app/views/account/register.rhtml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/account/register.rhtml b/app/views/account/register.rhtml index 4e2b5adf2..755a7ad4b 100644 --- a/app/views/account/register.rhtml +++ b/app/views/account/register.rhtml @@ -5,8 +5,9 @@ <div class="box"> <!--[form:user]--> +<% if @user.auth_source_id.nil? %> <p><label for="user_login"><%=l(:field_login)%> <span class="required">*</span></label> -<%= text_field 'user', 'login', :size => 25 %></p> +<%= text_field 'user', 'login', :size => 25 %></p> <p><label for="password"><%=l(:field_password)%> <span class="required">*</span></label> <%= password_field_tag 'password', nil, :size => 25 %><br /> @@ -14,6 +15,7 @@ <p><label for="password_confirmation"><%=l(:field_password_confirmation)%> <span class="required">*</span></label> <%= password_field_tag 'password_confirmation', nil, :size => 25 %></p> +<% end %> <p><label for="user_firstname"><%=l(:field_firstname)%> <span class="required">*</span></label> <%= text_field 'user', 'firstname' %></p> |