summaryrefslogtreecommitdiffstats
path: root/test/unit/user_test.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* Changed the way the visibility SQL statement is built.Jean-Philippe Lang2011-03-151-0/+17
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5140 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds random salt to user passwords (#7410).Jean-Philippe Lang2011-02-231-1/+33
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4936 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: no email sent with 'Notifiy for any event on the selected projects ↵Jean-Philippe Lang2011-01-241-0/+17
| | | | | | only' (#7421). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4761 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Do not show "for only project I select" notification option on application ↵Jean-Philippe Lang2011-01-161-0/+6
| | | | | | settings form (#7294). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4730 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: "Notifiy for only project I select" is randomly displayed (#7294).Jean-Philippe Lang2011-01-161-2/+9
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4727 e93f8b46-1217-0410-a6f0-8f06a7374b81
* When destroying a user, remove all references to that user (#7296).Jean-Philippe Lang2011-01-161-2/+206
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4726 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use absolute paths in test/**/* requires for Ruby 1.9.2 compatibility. #4050Jean-Baptiste Barth2010-12-121-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4509 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Validates user's mail_notification and turn options into strings (the ↵Jean-Philippe Lang2010-12-121-16/+17
| | | | | | attribute type). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4494 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: User#allowed_to? returning true in any case if array of projects had ↵Jean-Baptiste Barth2010-10-061-0/+4
| | | | | | only one item (#5332) git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4233 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added ability to specify multiple projects in User#allowed_to? (#5332)Jean-Baptiste Barth2010-09-291-0/+13
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4227 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add a default mail notification setting for new usersEric Davis2010-09-281-0/+12
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4219 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added User#notify_about? to check when a user should be notified about an eventEric Davis2010-09-281-0/+66
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4218 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Converted User#mail_notification from a boolean to a string.Eric Davis2010-09-281-4/+4
| | | | | | 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
* Added missing tests for User#allowed_to? #6291Jean-Baptiste Barth2010-09-031-0/+43
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4058 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Strips user email (#5834).Jean-Philippe Lang2010-07-251-0/+6
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3873 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add some tests for User#try_to_login with LDAP. #5592Eric Davis2010-06-301-0/+15
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3819 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Change User#login to be case-insensitive. #2473Eric Davis2010-06-201-0/+34
| | | | | | | | | 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
* Allow AuthSources to control if they allow password changes.Eric Davis2010-05-231-0/+26
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3745 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Check that admin LDAP user is untouched after authentication (#5263).Jean-Philippe Lang2010-04-111-2/+14
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3634 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Moves the LDAP test server to a fixture.Jean-Philippe Lang2010-02-261-11/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3490 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix LDAP on the fly creation. The User object doesn't have a :dn attribute.Eric Davis2010-02-251-0/+30
| | | | | | 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
* Added an API token for each User to use when making API requests. (#3920)Eric Davis2009-12-231-1/+51
| | | | | | | | 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
* Fixed a typo in Object daddyEric Davis2009-11-051-0/+6
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3010 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds missing native eol properties.Jean-Philippe Lang2009-09-201-223/+223
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2895 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Upgraded to Rails 2.3.4 (#3597)Eric Davis2009-09-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Allows multiple roles on the same project (#706). Prerequisite for user ↵Jean-Philippe Lang2009-05-101-6/+6
| | | | | | groups feature. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2726 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged Rails 2.2 branch. Redmine now requires Rails 2.2.2.Jean-Philippe Lang2009-02-211-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2493 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: User#identity_url raises an error when invalid url is supplied (#2742).Jean-Philippe Lang2009-02-151-0/+11
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2476 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removes the fat ruby-openid gem. Simply use 'gem install ruby-openid' to ↵Jean-Philippe Lang2009-02-121-188/+194
| | | | | | enable openid support. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2458 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Normalize the identity_url when it's set.Eric Davis2009-02-121-0/+19
| | | | | | | | | 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
* Hooked up on the fly OpenID user creation.Eric Davis2009-02-111-0/+7
| | | | | | | * Use OpenID registration fields for the user. * Generate a random password when a user is created. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2443 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Makes email adress uniqueness case-insensitive (#2473).Jean-Philippe Lang2009-01-101-0/+13
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2253 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Makes User.find_by_mail case-insensitive (password reminder #2322, repo ↵Jean-Philippe Lang2008-12-121-0/+6
| | | | | | users mapping). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2122 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Sort users by their display names so that user dropdown lists are sorted ↵Jean-Philippe Lang2008-11-111-2/+2
| | | | | | alphabetically (#2015). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2010 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: invalid SQL query on User#destroy (#1781).Jean-Philippe Lang2008-08-251-0/+6
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1755 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add a user preference to choose how comments/replies are displayed: in ↵Jean-Philippe Lang2008-03-051-0/+8
| | | | | | chronological or reverse chronological order (#589, #776). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1197 e93f8b46-1217-0410-a6f0-8f06a7374b81
* User display format is now configurable in administration settings.Jean-Philippe Lang2008-01-251-0/+8
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1103 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Anonymous users can now be allowed to create, edit, comment issues, comment ↵Jean-Philippe Lang2007-11-201-1/+8
| | | | | | | | news and post messages in the forums. These permissions need to be explicitly given to the Anonymous role (Admin -> Roles & Permissions -> Anonymous). git-svn-id: http://redmine.rubyforge.org/svn/trunk@919 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Diff style (inline or side by side) automatically saved as a user preference.Jean-Philippe Lang2007-11-081-2/+2
| | | | | | Fixed a Postgres test failure. git-svn-id: http://redmine.rubyforge.org/svn/trunk@893 e93f8b46-1217-0410-a6f0-8f06a7374b81
* More flexible mail notifications settings at user level. A user has now 3 ↵Jean-Philippe Lang2007-10-201-0/+24
| | | | | | | | | | options: * notification on any event on all his projects * notification on any event on selected projects only (if the user belongs to more than 1 project) * notification only for things that he watches or he is involded in (eg. issues that he watches or he is author or assignee) git-svn-id: http://redmine.rubyforge.org/svn/trunk@855 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged 0.6 branch into trunk.Jean-Philippe Lang2007-08-291-9/+5
| | | | | | | | | Permissions management was rewritten. Some permissions can now be specifically defined for non member and anonymous users. This migration: * is irreversible (please, don't forget to *backup* your database before upgrading) * resets role's permissions (go to "Admin -> Roles & Permissions" to set them after upgrading) git-svn-id: http://redmine.rubyforge.org/svn/trunk@674 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added a unit test on User#role_for_projectJean-Philippe Lang2007-04-041-1/+12
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@417 e93f8b46-1217-0410-a6f0-8f06a7374b81
* added rss/atom feeds at project levels for:Jean-Philippe Lang2007-03-171-0/+13
| | | | | | | | | | * news * new issues reported * details of issue changes issue cutom queries can be used as feeds git-svn-id: http://redmine.rubyforge.org/svn/trunk@339 e93f8b46-1217-0410-a6f0-8f06a7374b81
* trunk moved from /trunk/redmine to /trunkJean-Philippe Lang2006-12-051-0/+88
git-svn-id: http://redmine.rubyforge.org/svn/trunk@67 e93f8b46-1217-0410-a6f0-8f06a7374b81