]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5918 Fix issue when upgrading from previous version, having login with remember...
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Fri, 12 Dec 2014 15:34:52 +0000 (16:34 +0100)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Tue, 16 Dec 2014 07:29:47 +0000 (08:29 +0100)
server/sonar-web/src/main/webapp/WEB-INF/vendor/plugins/restful_authentication/lib/authentication/by_cookie_token.rb

index cc39d1acf65f53d331e4d1e3e6873a4c37ea22fe..e8ed84f503c5dea4906aa6b73c5ab9fd0f049b40 100644 (file)
@@ -42,8 +42,9 @@ module Authentication
       # refresh token (keeping same expires_at) if it exists
       def refresh_token
         if remember_token?
-          self.remember_token = self.class.make_token 
-          save(false)      
+          self.remember_token = self.class.make_token
+          # Skip before_update as it populate dates columns with a long value (see migrations 752 to 754)
+          send(:update_without_callbacks)
         end
       end