mirror of
https://github.com/DJSundog/wg-portal.git
synced 2024-11-23 07:03:50 -05:00
fix redirect after sending the peer email
This commit is contained in:
parent
1e9f845457
commit
68507c3bcd
@ -301,8 +301,12 @@ func (s *Server) GetPeerConfigMail(c *gin.Context) {
|
||||
}
|
||||
|
||||
SetFlashMessage(c, "mail sent successfully", "success")
|
||||
if strings.HasPrefix(c.Request.URL.Path, "/user") {
|
||||
c.Redirect(http.StatusSeeOther, "/user/profile")
|
||||
} else {
|
||||
c.Redirect(http.StatusSeeOther, "/admin")
|
||||
}
|
||||
}
|
||||
|
||||
func (s *Server) GetPeerStatus(c *gin.Context) {
|
||||
peer := s.peers.GetPeerByKey(c.Query("pkey"))
|
||||
|
Loading…
Reference in New Issue
Block a user