Skip to content

Commit

Permalink
Add error for maintenance mode (#533)
Browse files Browse the repository at this point in the history
  • Loading branch information
bheesham authored Oct 26, 2024
1 parent b2b83e8 commit 9a245a7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dashboard/oidc_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"incorrectaccount",
"aai_failed",
"staffmustuseldap",
"maintenancemode",
}


Expand Down Expand Up @@ -194,4 +195,8 @@ def error_message(self) -> Optional[str]:
Avoid using the buttons Sign in with Mozilla, with GitHub, or
with Google.
"""
if self.error_code == "maintenancemode":
return """
The system is in maintenance mode. Please try again later.
"""
return None

0 comments on commit 9a245a7

Please sign in to comment.