remove timeout
authorRichard Fairhurst <richard@systemed.net>
Mon, 11 Jun 2007 14:43:06 +0000 (14:43 +0000)
committerRichard Fairhurst <richard@systemed.net>
Mon, 11 Jun 2007 14:43:06 +0000 (14:43 +0000)
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