]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api/amf_controller.rb
Fix new rubocop warnings
[rails.git] / app / controllers / api / amf_controller.rb
index db8982d43278237df950f2889b5078b84aef69f2..c05a130981cdf46bb97cea3af2dca125362822dd 100644 (file)
@@ -868,7 +868,7 @@ module Api
     # not just the id, hence this abstraction
 
     def getuser(token)
-      if token =~ /^(.+)\:(.+)$/
+      if token =~ /^(.+):(.+)$/
         User.authenticate(:username => Regexp.last_match(1), :password => Regexp.last_match(2))
       else
         User.authenticate(:token => token)