瀏覽代碼

Removed the 12 characters limit on passwords.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@927 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/0.6.1
Jean-Philippe Lang 16 年之前
父節點
當前提交
fde4a42e2a
共有 24 個檔案被更改,包括 25 行新增6 行删除
  1. 1
    2
      app/models/user.rb
  2. 1
    1
      app/views/account/password_recovery.rhtml
  3. 2
    1
      app/views/account/register.rhtml
  4. 1
    1
      app/views/my/password.rhtml
  5. 1
    1
      app/views/users/_form.rhtml
  6. 1
    0
      lang/bg.yml
  7. 1
    0
      lang/cs.yml
  8. 1
    0
      lang/de.yml
  9. 1
    0
      lang/en.yml
  10. 1
    0
      lang/es.yml
  11. 1
    0
      lang/fr.yml
  12. 1
    0
      lang/he.yml
  13. 1
    0
      lang/it.yml
  14. 1
    0
      lang/ja.yml
  15. 1
    0
      lang/ko.yml
  16. 1
    0
      lang/nl.yml
  17. 1
    0
      lang/pl.yml
  18. 1
    0
      lang/pt-br.yml
  19. 1
    0
      lang/pt.yml
  20. 1
    0
      lang/ro.yml
  21. 1
    0
      lang/ru.yml
  22. 1
    0
      lang/sr.yml
  23. 1
    0
      lang/sv.yml
  24. 1
    0
      lang/zh.yml

+ 1
- 2
app/models/user.rb 查看文件

@@ -46,8 +46,7 @@ class User < ActiveRecord::Base
validates_length_of :firstname, :lastname, :maximum => 30
validates_format_of :mail, :with => /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i, :allow_nil => true
validates_length_of :mail, :maximum => 60, :allow_nil => true
# Password length between 4 and 12
validates_length_of :password, :in => 4..12, :allow_nil => true
validates_length_of :password, :minimum => 4, :allow_nil => true
validates_confirmation_of :password, :allow_nil => true
validates_associated :custom_values, :on => :update


+ 1
- 1
app/views/account/password_recovery.rhtml 查看文件

@@ -6,7 +6,7 @@
<div class="box tabular">
<p><label for="new_password"><%=l(:field_new_password)%> <span class="required">*</span></label>
<%= password_field_tag 'new_password', nil, :size => 25 %><br />
<em><%= l(:text_length_between, 4, 12) %></em></p>
<em><%= l(:text_caracters_minimum, 4) %></em></p>

<p><label for="new_password_confirmation"><%=l(:field_password_confirmation)%> <span class="required">*</span></label>
<%= password_field_tag 'new_password_confirmation', nil, :size => 25 %></p>

+ 2
- 1
app/views/account/register.rhtml 查看文件

@@ -9,7 +9,8 @@
<%= 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 %></p>
<%= password_field_tag 'password', nil, :size => 25 %><br />
<em><%= l(:text_caracters_minimum, 4) %></em></p>

<p><label for="password_confirmation"><%=l(:field_password_confirmation)%> <span class="required">*</span></label>
<%= password_field_tag 'password_confirmation', nil, :size => 25 %></p>

+ 1
- 1
app/views/my/password.rhtml 查看文件

@@ -9,7 +9,7 @@

<p><label for="new_password"><%=l(:field_new_password)%> <span class="required">*</span></label>
<%= password_field_tag 'new_password', nil, :size => 25 %><br />
<em><%= l(:text_length_between, 4, 12) %></em></p>
<em><%= l(:text_caracters_minimum, 4) %></em></p>

<p><label for="new_password_confirmation"><%=l(:field_password_confirmation)%> <span class="required">*</span></label>
<%= password_field_tag 'new_password_confirmation', nil, :size => 25 %></p>

+ 1
- 1
app/views/users/_form.rhtml 查看文件

@@ -24,7 +24,7 @@
<div id="password_fields" style="<%= 'display:none;' if @user.auth_source %>">
<p><label for="password"><%=l(:field_password)%><span class="required"> *</span></label>
<%= password_field_tag 'password', nil, :size => 25 %><br />
<em><%= l(:text_length_between, 4, 12) %></em></p>
<em><%= l(:text_caracters_minimum, 4) %></em></p>
<p><label for="password_confirmation"><%=l(:field_password_confirmation)%><span class="required"> *</span></label>
<%= password_field_tag 'password_confirmation', nil, :size => 25 %></p>
</div>

+ 1
- 0
lang/bg.yml 查看文件

@@ -545,3 +545,4 @@ label_registration_automatic_activation: automatic account activation
label_registration_manual_activation: manual account activation
notice_account_pending: "Your account was created and is now pending administrator approval."
field_time_zone: Time zone
text_caracters_minimum: Must be at least %d characters long.

+ 1
- 0
lang/cs.yml 查看文件

@@ -545,3 +545,4 @@ label_registration_automatic_activation: automatic account activation
label_registration_manual_activation: manual account activation
notice_account_pending: "Your account was created and is now pending administrator approval."
field_time_zone: Time zone
text_caracters_minimum: Must be at least %d characters long.

+ 1
- 0
lang/de.yml 查看文件

@@ -545,3 +545,4 @@ label_registration_automatic_activation: automatic account activation
label_registration_manual_activation: manual account activation
notice_account_pending: "Your account was created and is now pending administrator approval."
field_time_zone: Time zone
text_caracters_minimum: Must be at least %d characters long.

+ 1
- 0
lang/en.yml 查看文件

@@ -507,6 +507,7 @@ text_tip_task_end_day: task ending this day
text_tip_task_begin_end_day: task beginning and ending this day
text_project_identifier_info: 'Lower case letters (a-z), numbers and dashes allowed.<br />Once saved, the identifier can not be changed.'
text_caracters_maximum: %d characters maximum.
text_caracters_minimum: Must be at least %d characters long.
text_length_between: Length between %d and %d characters.
text_tracker_no_workflow: No workflow defined for this tracker
text_unallowed_characters: Unallowed characters

+ 1
- 0
lang/es.yml 查看文件

@@ -548,3 +548,4 @@ label_registration_automatic_activation: automatic account activation
label_registration_manual_activation: manual account activation
notice_account_pending: "Your account was created and is now pending administrator approval."
field_time_zone: Time zone
text_caracters_minimum: Must be at least %d characters long.

+ 1
- 0
lang/fr.yml 查看文件

@@ -507,6 +507,7 @@ text_tip_task_end_day: tâche finissant ce jour
text_tip_task_begin_end_day: tâche commençant et finissant ce jour
text_project_identifier_info: 'Lettres minuscules (a-z), chiffres et tirets autorisés.<br />Un fois sauvegardé, l''identifiant ne pourra plus être modifié.'
text_caracters_maximum: %d caractères maximum.
text_caracters_minimum: %d caractères minimum.
text_length_between: Longueur comprise entre %d et %d caractères.
text_tracker_no_workflow: Aucun worflow n'est défini pour ce tracker
text_unallowed_characters: Caractères non autorisés

+ 1
- 0
lang/he.yml 查看文件

@@ -545,3 +545,4 @@ label_registration_automatic_activation: automatic account activation
label_registration_manual_activation: manual account activation
notice_account_pending: "Your account was created and is now pending administrator approval."
field_time_zone: Time zone
text_caracters_minimum: Must be at least %d characters long.

+ 1
- 0
lang/it.yml 查看文件

@@ -545,3 +545,4 @@ label_registration_automatic_activation: automatic account activation
label_registration_manual_activation: manual account activation
notice_account_pending: "Your account was created and is now pending administrator approval."
field_time_zone: Time zone
text_caracters_minimum: Must be at least %d characters long.

+ 1
- 0
lang/ja.yml 查看文件

@@ -546,3 +546,4 @@ label_registration_automatic_activation: automatic account activation
label_registration_manual_activation: manual account activation
notice_account_pending: "Your account was created and is now pending administrator approval."
field_time_zone: Time zone
text_caracters_minimum: Must be at least %d characters long.

+ 1
- 0
lang/ko.yml 查看文件

@@ -545,3 +545,4 @@ label_registration_automatic_activation: automatic account activation
label_registration_manual_activation: manual account activation
notice_account_pending: "Your account was created and is now pending administrator approval."
field_time_zone: Time zone
text_caracters_minimum: Must be at least %d characters long.

+ 1
- 0
lang/nl.yml 查看文件

@@ -546,3 +546,4 @@ label_registration_automatic_activation: automatic account activation
label_registration_manual_activation: manual account activation
notice_account_pending: "Your account was created and is now pending administrator approval."
field_time_zone: Time zone
text_caracters_minimum: Must be at least %d characters long.

+ 1
- 0
lang/pl.yml 查看文件

@@ -545,3 +545,4 @@ label_registration_automatic_activation: automatyczna aktywacja kont
label_registration_manual_activation: manualna aktywacja kont
notice_account_pending: "Twoje konto zostało utworzone i oczekuje na zatwierdzenie administratora."
field_time_zone: Strefa czasowa
text_caracters_minimum: Must be at least %d characters long.

+ 1
- 0
lang/pt-br.yml 查看文件

@@ -545,3 +545,4 @@ label_registration_automatic_activation: automatic account activation
label_registration_manual_activation: manual account activation
notice_account_pending: "Your account was created and is now pending administrator approval."
field_time_zone: Time zone
text_caracters_minimum: Must be at least %d characters long.

+ 1
- 0
lang/pt.yml 查看文件

@@ -545,3 +545,4 @@ label_registration_automatic_activation: automatic account activation
label_registration_manual_activation: manual account activation
notice_account_pending: "Your account was created and is now pending administrator approval."
field_time_zone: Time zone
text_caracters_minimum: Must be at least %d characters long.

+ 1
- 0
lang/ro.yml 查看文件

@@ -545,3 +545,4 @@ label_registration_automatic_activation: automatic account activation
label_registration_manual_activation: manual account activation
notice_account_pending: "Your account was created and is now pending administrator approval."
field_time_zone: Time zone
text_caracters_minimum: Must be at least %d characters long.

+ 1
- 0
lang/ru.yml 查看文件

@@ -545,3 +545,4 @@ label_registration_automatic_activation: автоматическая актив
label_registration_manual_activation: активировать аккаунты вручную
notice_account_pending: "Ваш аккаунт уже создан и ожидает подтверждения администратора."
field_time_zone: Часовой пояс
text_caracters_minimum: Must be at least %d characters long.

+ 1
- 0
lang/sr.yml 查看文件

@@ -546,3 +546,4 @@ label_registration_automatic_activation: automatic account activation
label_registration_manual_activation: manual account activation
notice_account_pending: "Your account was created and is now pending administrator approval."
field_time_zone: Time zone
text_caracters_minimum: Must be at least %d characters long.

+ 1
- 0
lang/sv.yml 查看文件

@@ -546,3 +546,4 @@ label_registration_automatic_activation: automatic account activation
label_registration_manual_activation: manual account activation
notice_account_pending: "Your account was created and is now pending administrator approval."
field_time_zone: Time zone
text_caracters_minimum: Must be at least %d characters long.

+ 1
- 0
lang/zh.yml 查看文件

@@ -548,3 +548,4 @@ label_registration_automatic_activation: automatic account activation
label_registration_manual_activation: manual account activation
notice_account_pending: "Your account was created and is now pending administrator approval."
field_time_zone: Time zone
text_caracters_minimum: Must be at least %d characters long.

Loading…
取消
儲存