diff options
author | ྅༻ Ǭɀħ ༄༆ཉ <ozh@ozh.org> | 2022-04-02 14:49:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-02 14:49:37 +0300 |
commit | 1de256d8694b0ec7d4df2ac1d5976d4055e09d59 (patch) | |
tree | 793348526ef5d86359dedf0d14495a3200675eaf /admin | |
parent | 55db480f43b22af1f14ce5382f27e176533a8ede (diff) |
Add nonce to the logout link (#3264)
* Add nonce to the logout link
* Add tests for cookies being set or reset
* More tests: check nonces are different for different actions & users
Fixes #3170
Diffstat (limited to 'admin')
-rw-r--r-- | admin/admin-ajax.php | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/admin/admin-ajax.php b/admin/admin-ajax.php index 77f68ac2..103cf1c8 100644 --- a/admin/admin-ajax.php +++ b/admin/admin-ajax.php @@ -40,11 +40,6 @@ switch( $action ) { echo json_encode(array('success'=>$query)); break; - case 'logout': - // unused for the moment - yourls_logout(); - break; - default: yourls_do_action( 'yourls_ajax_'.$action ); |