mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-27 01:06:13 +08:00 
			
		
		
		
	Merge pull request #1595 from TriliumNext/fix/logout-headers-sent-error
Fix "Cannot set headers after they are sent" error in logout function
This commit is contained in:
		
						commit
						4b64c34cbb
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -150,9 +150,9 @@ function logout(req: Request, res: Response) { | |||
| 
 | ||||
|         if (openID.isOpenIDEnabled() && openIDEncryption.isSubjectIdentifierSaved()) { | ||||
|             res.oidc.logout({ returnTo: '/' }); | ||||
|         } else res.redirect('login'); | ||||
|         } | ||||
| 
 | ||||
|         res.sendStatus(200); | ||||
|         res.redirect('login'); | ||||
|     }); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue