feat(console): add or remove all monitors of a status page, skip signup when signed in
The status page editor gets "Add all" and "Remove all" above its monitor list. Opening the signup page while signed in leads to the monitor list, as the login page already did. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
1 parent
feaa1e930d
commit
4cde0f7e56
7 files changed
+463
-381
No files matched your search
@@ -122,6 +122,11 @@ func (s *Server) signupOptions(ctx context.Context) (bool, []web.IDPButton, erro
|
||||
}
|
||||
|
||||
func (s *Server) signupPage(c *gin.Context) {
|
||||
// Signed in already: straight to the monitors.
|
||||
if auth.Current(c) != nil {
|
||||
c.Redirect(http.StatusSeeOther, "/")
|
||||
return
|
||||
}
|
||||
email, providers, err := s.signupOptions(c.Request.Context())
|
||||
if err != nil {
|
||||
internalError(c, err)
|
||||
|
||||
Reference in new issue
Block a user