r387 - trunk/jredmine-client/src/main/redmine/jredmine-2.x/app/controllers
Author: tchemit Date: 2012-10-26 18:06:28 +0200 (Fri, 26 Oct 2012) New Revision: 387 Url: http://nuiton.org/repositories/revision/jredmine/387 Log: fixes #2379: Could not login to redmine using the jredmine login api Modified: trunk/jredmine-client/src/main/redmine/jredmine-2.x/app/controllers/jredmine_controller.rb Modified: trunk/jredmine-client/src/main/redmine/jredmine-2.x/app/controllers/jredmine_controller.rb =================================================================== --- trunk/jredmine-client/src/main/redmine/jredmine-2.x/app/controllers/jredmine_controller.rb 2012-10-26 11:51:48 UTC (rev 386) +++ trunk/jredmine-client/src/main/redmine/jredmine-2.x/app/controllers/jredmine_controller.rb 2012-10-26 16:06:28 UTC (rev 387) @@ -473,6 +473,10 @@ end end end + if user.nil? + # Last chance using request params + user = User.try_to_login(params[:username], params[:password]) + end user end
participants (1)
-
tchemit@users.nuiton.org