mirror of
https://github.com/h44z/wg-portal.git
synced 2025-07-10 07:06:58 +00: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")
|
||||
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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user