half-logged-in only for one day

This commit is contained in:
Shish 2012-02-09 17:11:03 +00:00
parent 912f096d8c
commit 5f4f941444

View File

@ -471,7 +471,7 @@ class CommentList extends Extension {
throw new CommentPostingException("Comment too repetitive~"); throw new CommentPostingException("Comment too repetitive~");
} }
else if($user->is_anonymous() && !$this->hash_match()) { else if($user->is_anonymous() && !$this->hash_match()) {
set_prefixed_cookie("nocache", "Anonymous Commenter", time()+60*60*24*$config->get_int('login_memory'), "/"); set_prefixed_cookie("nocache", "Anonymous Commenter", time()+60*60*24, "/");
throw new CommentPostingException( throw new CommentPostingException(
"Comment submission form is out of date; refresh the ". "Comment submission form is out of date; refresh the ".
"comment form to show you aren't a spammer~"); "comment form to show you aren't a spammer~");