mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 10:56:10 +01:00 
			
		
		
		
	Logout POST action (#10582)
* Change logout to POST * Update for redirect Signed-off-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
		| @@ -2741,11 +2741,14 @@ function showAddAllPopup() { | ||||
|  | ||||
| function linkAction() { | ||||
|   const $this = $(this); | ||||
|   const redirect = $this.data('redirect'); | ||||
|   $.post($this.data('url'), { | ||||
|     _csrf: csrf | ||||
|   }).done((data) => { | ||||
|     if (data.redirect) { | ||||
|       window.location.href = data.redirect; | ||||
|     } else if (redirect) { | ||||
|       window.location.href = redirect; | ||||
|     } else { | ||||
|       window.location.reload(); | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user