This commit is contained in:
joyqi
2019-03-16 14:50:13 +08:00
parent 8045a0d403
commit 32c2f8217d
2 changed files with 5 additions and 1 deletions
+3
View File
@@ -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);
+2 -1
View File
@@ -251,7 +251,8 @@ class Widget_Options extends Typecho_Widget
*/
protected function ___logoutUrl()
{
return Typecho_Common::url('/action/logout', $this->index);
return $this->widget('Widget_Security')->getTokenUrl(
Typecho_Common::url('/action/logout', $this->index));
}
/**