Skip to content
Permalink
Browse files

fix #845

  • Loading branch information...
joyqi committed Mar 16, 2019
1 parent 8045a0d commit 32c2f8217dcf647bddc79e9146562fc7c2dfd976
Showing with 5 additions and 1 deletion.
  1. +3 −0 var/Widget/Logout.php
  2. +2 −1 var/Widget/Options.php
@@ -28,6 +28,9 @@ class Widget_Logout extends Widget_Abstract_Users implements Widget_Interface_Do
*/
public function action()
{
// protect
$this->security->protect();
$this->user->logout();
$this->pluginHandle()->logout();
$this->response->goBack(NULL, $this->options->index);
@@ -251,7 +251,8 @@ protected function ___profileUrl()
*/
protected function ___logoutUrl()
{
return Typecho_Common::url('/action/logout', $this->index);
return $this->widget('Widget_Security')->getTokenUrl(
Typecho_Common::url('/action/logout', $this->index));
}
/**

0 comments on commit 32c2f82

Please sign in to comment.
You can’t perform that action at this time.