remove timeout
This commit is contained in:
parent
3da913748c
commit
5ef2e8f661
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue