summaryrefslogtreecommitdiffstats
path: root/app/controllers/account_controller.rb
Commit message (Collapse)AuthorAgeFilesLines
* Added a plugin hook for :controller_account_success_authentication_afterEric Davis2009-03-201-0/+1
| | | | | | #3019 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2609 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes that user's last_login_on was not set when using registration with ↵Jean-Philippe Lang2009-03-151-0/+1
| | | | | | automatic activation. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2594 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: When logging in via an autologin cookie the user's last_login_on ↵Jean-Philippe Lang2009-02-251-11/+2
| | | | | | should be updated (#2820). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2524 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed the bug in the OpenID registration where the form wouldn't take a loginEric Davis2009-02-201-3/+3
| | | | | | | | | AccountController#open_id_authenticate was adding an auth_source_registration to the session which caused AccountController#register to use the wrong codepath. #2757 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2483 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed a bug in the OpenID login when a user signed up with OpenID but hasn'tEric Davis2009-02-201-3/+11
| | | | | | | | | | | been activated yet. When logging in the user would come back to the login page with the back_url of My Page. This was caused by open_id_authenticate sending the user to My Page and My Page redirecting the user back to the login page because they haven't been activated. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2482 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removes the fat ruby-openid gem. Simply use 'gem install ruby-openid' to ↵Jean-Philippe Lang2009-02-121-1/+1
| | | | | | enable openid support. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2458 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added a system setting for allowing OpenID logins and registrationsEric Davis2009-02-111-3/+3
| | | | | | | | | * Defaults to off * Is set in the Administration panel under Authentication #699 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2449 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Prevent registration via OpenID if self registration is off. #699Eric Davis2009-02-111-0/+3
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2448 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Refactored common methods out of register and open_id_authenticateEric Davis2009-02-111-43/+49
| | | | | | | | | | * Extracted register_by_email_activation * Extracted register_automatically * Extracted register_manually_by_administrator #699 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2447 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added user setup needed based on the system's registration settingsEric Davis2009-02-111-7/+41
| | | | | | | | | | | * Copied the register action's chunk of code used to setup the account based on Setting.self_registration * Extracted method for when onthefly_creation_failed * Added tests to confirm the behavior #699 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2446 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added tests for the other OpenID authentication cases. #699Eric Davis2009-02-111-3/+3
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2445 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Hooked up on the fly OpenID user creation.Eric Davis2009-02-111-11/+11
| | | | | | | * 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
* Added the ability to login via OpenID.Eric Davis2009-02-111-17/+58
| | | | | | | | | | | | | | | | | * 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
* Replaces User.find_active with a named scope.Jean-Philippe Lang2008-11-301-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2079 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Display latest user's activity on account/show view.Jean-Philippe Lang2008-11-301-2/+6
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2066 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes custom fields display order at several places (#1768).Jean-Philippe Lang2008-08-111-1/+1
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1731 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Moves @layout 'base'@ to ApplicationController.Jean-Philippe Lang2008-08-101-1/+0
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1727 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Improved on-the-fly account creation. If some attributes are missing (eg. ↵Jean-Philippe Lang2008-07-191-25/+43
| | | | | | 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
* Custom fields refactoring: most of code moved from controllers to models ↵Jean-Philippe Lang2008-06-271-5/+0
| | | | | | (using new module ActsAsCustomizable). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1592 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Log the user in after registration if account activation is not needed.Jean-Philippe Lang2008-06-091-1/+2
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1521 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Better error message and AR errors in log for failed LDAP on-the-fly user ↵Jean-Philippe Lang2008-04-131-0/+2
| | | | | | creation (closes #932, #1042). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1345 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Login field name changed to username (#755).Jean-Philippe Lang2008-02-291-1/+1
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1181 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: private projects name are displayed on account/show even if the ↵Jean-Philippe Lang2008-01-041-1/+1
| | | | | | current user doesn't have access to these private projects. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1036 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: error on account/register when validation fails.Jean-Philippe Lang2007-11-231-4/+4
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@925 e93f8b46-1217-0410-a6f0-8f06a7374b81
* There's now 3 account activation strategies (available in application settings):Jean-Philippe Lang2007-11-181-23/+45
| | | | | | | | * activation by email: the user receives an email containing a link to active his account * manual activation: an email is sent to administrators for account approval (default) * automatic activation: the user can log in as soon as he has registered git-svn-id: http://redmine.rubyforge.org/svn/trunk@915 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added a named route for the home page.Jean-Philippe Lang2007-09-241-6/+6
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@760 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged 0.6 branch into trunk.Jean-Philippe Lang2007-08-291-6/+16
| | | | | | | | | 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
* Fixed: non-active users can be viewed with account/showJean-Philippe Lang2007-08-131-1/+1
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@622 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Applied 'register notice' patch by Matt Jones.Jean-Philippe Lang2007-08-021-1/+1
| | | | | | The user is now redirected to the login screen after having registered. git-svn-id: http://redmine.rubyforge.org/svn/trunk@601 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Applied the flash notices patch by Matt Jones (slightly edited).Jean-Philippe Lang2007-08-021-3/+3
| | | | | | flash[:notice] and flash[:error] are now used for notice/error messages. git-svn-id: http://redmine.rubyforge.org/svn/trunk@600 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed confidentiality issue on account/show.Jean-Philippe Lang2007-06-231-0/+5
| | | | | | Only public projects or private projects that the logged in user belongs to are displayed. git-svn-id: http://redmine.rubyforge.org/svn/trunk@567 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added autologin feature (disabled by default).Jean-Philippe Lang2007-05-061-0/+7
| | | | | | | To enable this feature, go to administration settings and choose a duration for autologin. When enabled, a checkbox on the login form lets users activate autologin. git-svn-id: http://redmine.rubyforge.org/svn/trunk@514 e93f8b46-1217-0410-a6f0-8f06a7374b81
* added svn:eol-style native property on /app filesJean-Philippe Lang2007-03-121-130/+130
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@333 e93f8b46-1217-0410-a6f0-8f06a7374b81
* lost_password option checking in account controllerJean-Philippe Lang2007-02-041-1/+2
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@236 e93f8b46-1217-0410-a6f0-8f06a7374b81
* proper language setting for mail notificationsJean-Philippe Lang2007-01-271-3/+0
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@200 e93f8b46-1217-0410-a6f0-8f06a7374b81
* * replaced :controller => '' broken statements by :controller => 'welcome'Jean-Philippe Lang2007-01-251-6/+6
| | | | | | * request_uri method no more used git-svn-id: http://redmine.rubyforge.org/svn/trunk@175 e93f8b46-1217-0410-a6f0-8f06a7374b81
* settings are now stored in the database (config_custom.rb no more used) and ↵Jean-Philippe Lang2007-01-211-3/+3
| | | | | | editable through the application in: Admin -> Settings git-svn-id: http://redmine.rubyforge.org/svn/trunk@167 e93f8b46-1217-0410-a6f0-8f06a7374b81
* ActiveRecord::RecordNotFound exceptions handled more gracefullyJean-Philippe Lang2007-01-021-0/+2
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@133 e93f8b46-1217-0410-a6f0-8f06a7374b81
* trunk moved from /trunk/redmine to /trunkJean-Philippe Lang2006-12-051-0/+131
git-svn-id: http://redmine.rubyforge.org/svn/trunk@67 e93f8b46-1217-0410-a6f0-8f06a7374b81