couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject couch commit: updated refs/heads/master to bda4957
Date Sat, 15 Aug 2015 11:48:10 GMT
Repository: couchdb-couch
Updated Branches:
  refs/heads/master 27f365696 -> bda4957ad


Align csrf cookie refresh with authsession cookie refresh


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/bda4957a
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/bda4957a
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/bda4957a

Branch: refs/heads/master
Commit: bda4957ad75fce408d5ab6dcc5d4564de9ce95e5
Parents: 27f3656
Author: Robert Newson <rnewson@apache.org>
Authored: Sat Aug 15 12:47:44 2015 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Sat Aug 15 12:47:53 2015 +0100

----------------------------------------------------------------------
 src/couch_httpd_csrf.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/bda4957a/src/couch_httpd_csrf.erl
----------------------------------------------------------------------
diff --git a/src/couch_httpd_csrf.erl b/src/couch_httpd_csrf.erl
index 451b27a..e765a4d 100644
--- a/src/couch_httpd_csrf.erl
+++ b/src/couch_httpd_csrf.erl
@@ -184,7 +184,7 @@ validate_cookie({Token, Timestamp, ActualHmac}) ->
 refresh_cookie({_, Timestamp, _}) ->
     MaxAge = max_age(),
     TimeLeft = Timestamp + MaxAge - timestamp(),
-    TimeLeft < MaxAge * 0.5.
+    TimeLeft < MaxAge * 0.9.
 
 
 max_age() ->


Mime
View raw message