diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-10-14 19:21:27 +0300 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-10-14 19:21:27 +0300 |
commit | b83a18a55cd03cfa6d0d631b8d4567ae29b5fe26 (patch) | |
tree | 8d4c05cf0b74779fb37cb492bf4dd3bd653c614b /app/models/project_services/teamcity_service.rb | |
parent | 2fb02f9252f3083b44d1999a8421b3824e1929cb (diff) | |
download | gitlab-ce-b83a18a55cd03cfa6d0d631b8d4567ae29b5fe26.tar.gz |
Revert "Improve invalidation of stored service password if the endpoint URL is changed"
This reverts commit b46397548056e4e8ef00efe4f641c61ba1dd5230.
Diffstat (limited to 'app/models/project_services/teamcity_service.rb')
-rw-r--r-- | app/models/project_services/teamcity_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project_services/teamcity_service.rb b/app/models/project_services/teamcity_service.rb index a548a557dfe..fb11cad352e 100644 --- a/app/models/project_services/teamcity_service.rb +++ b/app/models/project_services/teamcity_service.rb @@ -45,7 +45,7 @@ class TeamcityService < CiService end def reset_password - if prop_modified?(:teamcity_url) && !prop_updated?(:password) + if prop_updated?(:teamcity_url) self.password = nil end end |