Jean-Philippe Lang
269e9057dd
Fixed that "Default administrator account changed" is always true ( #10622 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9379 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-04-09 15:53:48 +00:00
Jean-Philippe Lang
77314ebe8f
Fixed test names ( #1913 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9242 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-17 12:18:23 +00:00
Jean-Philippe Lang
fdeb398c5e
LDAP: adds the ability to bind with user's account ( #1913 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9241 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-17 12:09:59 +00:00
Jean-Philippe Lang
97ca65d1b2
Changed assertions to make them work with Rails2/3 ruby1.8/1.9 different behaviours.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9107 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-05 10:55:19 +00:00
Jean-Philippe Lang
80663e694d
Removed shoulda assertions.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9088 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-04 13:43:17 +00:00
Jean-Philippe Lang
ac46497f1a
Fixes LDAP test.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9045 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-01 19:47:03 +00:00
Jean-Philippe Lang
dedfdefcf3
Disabled on the fly registration for auth_source fixture.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8913 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-19 21:39:29 +00:00
Jean-Philippe Lang
a00f04886f
Increase username length limit from 30 to 60 ( #2719 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8778 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-05 11:50:53 +00:00
Jean-Philippe Lang
1bd5e58c84
Adds support for multiple repositories per project ( #779 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8650 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-01-15 18:19:19 +00:00
Toshi MARUYAMA
8e5242ef63
Rails3: test: replace deprecated Errors#on to Errors#[] and join with to_s at test/unit/user_test.rb
...
On Rails2, Errors#[] returns single error if one error raises.
But, on Rails3, Errors#[] always returns the array.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8137 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-09 07:15:51 +00:00
Jean-Philippe Lang
81bcb4d999
Don't change setting value in tests.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8063 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-03 20:28:32 +00:00
Jean-Philippe Lang
5a1fcf826f
Sort the issue list by author/assignee according to user display format ( #9669 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7938 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-26 17:37:20 +00:00
Toshi MARUYAMA
c76b114e9e
Rails3: test: replace deprecated errors.on at test_validate_mail_notification_inclusion of unit/user_test.rb
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7593 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-07 04:16:42 +00:00
Toshi MARUYAMA
5edabcd8b5
code layout clean up of test/unit/user_test.rb
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7592 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-07 04:16:03 +00:00
Toshi MARUYAMA
cf8564987e
add missing fixtures at unit user test in running on empty database
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7445 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-22 09:53:35 +00:00
Toshi MARUYAMA
8013244b06
more strict test to ensure single anonymous user at unit user test
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7444 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-22 09:53:11 +00:00
Toshi MARUYAMA
c36408dd39
add test to ensure single anonymous user at unit user test
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7443 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-22 04:24:27 +00:00
Toshi MARUYAMA
80581538a1
add test of validate password length at unit user test
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7430 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-21 06:13:16 +00:00
Toshi MARUYAMA
569a10db1d
remove trailing white-spaces from test/unit/user_test.rb.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6715 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-29 03:57:49 +00:00
Jean-Philippe Lang
f2af44b6fe
Do not show 2 validation errors when user mail is blank.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6168 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-03 12:37:57 +00:00
Jean-Philippe Lang
5f889932b6
Changed the way the visibility SQL statement is built.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5140 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-03-15 15:39:59 +00:00
Jean-Philippe Lang
ce84bb1a01
Adds random salt to user passwords ( #7410 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4936 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-02-23 17:27:31 +00:00
Jean-Philippe Lang
73a2d926f6
Fixed: no email sent with 'Notifiy for any event on the selected projects only' ( #7421 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4761 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-24 17:28:59 +00:00
Jean-Philippe Lang
e17fadd07a
Do not show "for only project I select" notification option on application settings form ( #7294 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4730 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-16 15:36:42 +00:00
Jean-Philippe Lang
0e3017dc62
Fixed: "Notifiy for only project I select" is randomly displayed ( #7294 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4727 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-16 14:40:38 +00:00
Jean-Philippe Lang
e809d40f4e
When destroying a user, remove all references to that user ( #7296 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4726 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-16 14:27:02 +00:00
Jean-Baptiste Barth
17f86d964f
Use absolute paths in test/**/* requires for Ruby 1.9.2 compatibility. #4050
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4509 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-12 23:24:34 +00:00
Jean-Philippe Lang
e4f319fe61
Validates user's mail_notification and turn options into strings (the attribute type).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4494 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-12 14:02:39 +00:00
Jean-Baptiste Barth
e59c927ee5
Fixed: User#allowed_to? returning true in any case if array of projects had only one item ( #5332 )
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4233 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-10-06 05:08:31 +00:00
Jean-Baptiste Barth
e8f3dd07dd
Added ability to specify multiple projects in User#allowed_to? ( #5332 )
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4227 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-09-29 05:22:45 +00:00
Eric Davis
582ed86d82
Add a default mail notification setting for new users
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4219 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-09-28 18:36:50 +00:00
Eric Davis
c059300d99
Added User#notify_about? to check when a user should be notified about an event
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4218 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-09-28 18:22:10 +00:00
Eric Davis
0316af7f6b
Converted User#mail_notification from a boolean to a string.
...
The string will now store which type of notification option to use.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4216 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-09-28 18:22:00 +00:00
Jean-Baptiste Barth
c799d03ece
Added missing tests for User#allowed_to? #6291
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4058 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-09-03 20:16:00 +00:00
Jean-Philippe Lang
66820dbed3
Strips user email ( #5834 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3873 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-07-25 09:50:41 +00:00
Eric Davis
6ef240841c
Add some tests for User#try_to_login with LDAP. #5592
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3819 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-06-30 01:47:47 +00:00
Eric Davis
de17640489
Change User#login to be case-insensitive. #2473
...
This change also overrides User#find_by_login to give priority to exact
matches in the login.
Contributed by Greg Mefford
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3807 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-06-20 21:40:50 +00:00
Eric Davis
908d44519c
Allow AuthSources to control if they allow password changes.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3745 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-05-23 03:16:37 +00:00
Jean-Philippe Lang
9306f3ea6c
Check that admin LDAP user is untouched after authentication ( #5263 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3634 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-04-11 13:54:42 +00:00
Jean-Philippe Lang
899f06612a
Moves the LDAP test server to a fixture.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3490 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-02-26 08:42:40 +00:00
Eric Davis
19d4ddf2f2
Fix LDAP on the fly creation. The User object doesn't have a :dn attribute.
...
Fixes #4918 and adds a test for the behavior.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3485 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-02-25 16:19:55 +00:00
Eric Davis
aa9951b38b
Added an API token for each User to use when making API requests. ( #3920 )
...
The API key will be displayed on My Account page with a link to reset or
generate a new one. All existing users will have a token generated by the
migration.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3217 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-12-23 06:27:28 +00:00
Eric Davis
5f48256c20
Fixed a typo in Object daddy
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3010 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-11-05 21:32:26 +00:00
Jean-Philippe Lang
21e18c1eb4
Adds missing native eol properties.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2895 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-09-20 14:06:57 +00:00
Eric Davis
7b0cb6aba8
Upgraded to Rails 2.3.4 ( #3597 )
...
* Ran the Rails upgrade
* Upgraded to Rails Engines 2.3.2
* Added a plugin to let Engines override application views.
* Converted tests to use the new classes:
** ActionController::TestCase for functional
** ActiveSupport::TestCase for units
* Converted ActiveRecord::Error message to a string.
* ActiveRecord grouping returns an ordered hash which doesn't have #sort!
* Updated the I18n storage_units format.
* Added some default initializers from a fresh rails app
* Changed the order of check_box_tags and hidden_field_tags. The hidden tag
needs to appear first in Rails 2.3, otherwise it will override any value in
the check_box_tag.
* Removed the custom handler for when the cookie store is tampered with.
Rails 2.3 removed the TamperedWithCookie exception and instead Rails will not
load the data from it when it's been tampered with (e.g. no user login).
* Fixed mail layouts, 2.3 has problems with implicit multipart emails that
use layouts. Also removed some custom Redmine mailer code.
* Fixed a bug that occurred in tests where the "required" span tag would be
added to the :field_status translation. This resulted in an email string of:
<li>Status<span class="required"> *</span><span class="required"> *</span>
Instead of:
<li>Status: New</li>
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2887 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-09-13 17:14:35 +00:00
Jean-Philippe Lang
7dccf9fda6
Allows multiple roles on the same project ( #706 ). Prerequisite for user groups feature.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2726 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-05-10 10:54:31 +00:00
Jean-Philippe Lang
fe28193e4e
Merged Rails 2.2 branch. Redmine now requires Rails 2.2.2.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2493 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-02-21 11:04:50 +00:00
Jean-Philippe Lang
d643d9a94c
Fixed: User#identity_url raises an error when invalid url is supplied ( #2742 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2476 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-02-15 18:46:50 +00:00
Jean-Philippe Lang
ff9da0bab0
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
2009-02-12 21:25:50 +00:00
Eric Davis
60dc357271
Normalize the identity_url when it's set.
...
OpenId uses a specific format for the url it uses which requires the protocol
and trailing slash. This change will normalize the value to when a user sets it.
#699
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2453 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-02-12 04:31:28 +00:00