Allow API tokens to be used instead of user/pass
git-svn-id: file:///home/svn/framework3/trunk@8823 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
9f4ba25823
commit
2dd91d4f88
|
@ -12,8 +12,8 @@ class Base
|
|||
|
||||
stale = []
|
||||
@tokens.each_key do |t|
|
||||
user,ctime,mtime = @tokens[t]
|
||||
if(mtime + 300 < Time.now.to_i)
|
||||
user,ctime,mtime,perm = @tokens[t]
|
||||
if ! perm and mtime + 300 < Time.now.to_i
|
||||
stale << t
|
||||
end
|
||||
end
|
||||
|
@ -31,3 +31,4 @@ class Base
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue