mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 21:50:28 +08:00 
			
		
		
		
	
		
			
	
	
		
			17 lines
		
	
	
		
			292 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			17 lines
		
	
	
		
			292 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 
								 | 
							
								package logout
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								import (
							 | 
						||
| 
								 | 
							
									"github.com/TeaOSLab/EdgeAdmin/internal/web/helpers"
							 | 
						||
| 
								 | 
							
									"github.com/iwind/TeaGo/actions"
							 | 
						||
| 
								 | 
							
								)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								type IndexAction actions.Action
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								// 退出登录
							 | 
						||
| 
								 | 
							
								func (this *IndexAction) Run(params struct {
							 | 
						||
| 
								 | 
							
									Auth *helpers.UserShouldAuth
							 | 
						||
| 
								 | 
							
								}) {
							 | 
						||
| 
								 | 
							
									params.Auth.Logout()
							 | 
						||
| 
								 | 
							
									this.RedirectURL("/")
							 | 
						||
| 
								 | 
							
								}
							 |