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,7 +301,11 @@ func (s *Server) GetPeerConfigMail(c *gin.Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
SetFlashMessage(c, "mail sent successfully", "success")
|
SetFlashMessage(c, "mail sent successfully", "success")
|
||||||
c.Redirect(http.StatusSeeOther, "/admin")
|
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) {
|
func (s *Server) GetPeerStatus(c *gin.Context) {
|
||||||
|
Loading…
Reference in New Issue
Block a user