]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/amf_controller.rb
remove timeout
[rails.git] / app / controllers / amf_controller.rb
index c5a7c30ead5ac5f56559e51a8c3ef59b49405660..7b2cba701856ed2ad289484955958c0306c440b4 100644 (file)
@@ -555,9 +555,9 @@ end
 def getuserid(token)
   token=sqlescape(token)
   if (token=~/^(.+)\+(.+)$/) then
-    return ActiveRecord::Base.connection.select_value("SELECT id FROM users WHERE active=1 AND timeout>NOW() AND email='#{$1}' AND pass_crypt=MD5('#{$2}')")
+    return ActiveRecord::Base.connection.select_value("SELECT id FROM users WHERE active=1 AND email='#{$1}' AND pass_crypt=MD5('#{$2}')")
   else
-    return ActiveRecord::Base.connection.select_value("SELECT id FROM users WHERE active=1 AND timeout>NOW() AND token='#{token}'")
+    return ActiveRecord::Base.connection.select_value("SELECT id FROM users WHERE active=1 AND token='#{token}'")
   end
 end