feat(auth): require changing default admin password (#778)

This commit is contained in:
h44z
2026-11-09 19:57:23 +01:00
committed by GitHub
parent 137286d46b
commit 276f120b60
30 changed files with 641 additions and 90 deletions
+15 -12
View File
@@ -26,6 +26,8 @@ type SessionData struct {
Lastname string
Email string
DefaultPasswordInUse bool
OauthState string
OauthNonce string
OauthCodeVerifier string
@@ -81,17 +83,18 @@ func (s *SessionWrapper) DestroyData(ctx context.Context) {
func (s *SessionWrapper) defaultSessionData() SessionData {
return SessionData{
LoggedIn: false,
IsAdmin: false,
UserIdentifier: "",
Firstname: "",
Lastname: "",
Email: "",
OauthState: "",
OauthNonce: "",
OauthCodeVerifier: "",
OauthProvider: "",
OauthReturnTo: "",
OauthIdToken: "",
LoggedIn: false,
IsAdmin: false,
UserIdentifier: "",
Firstname: "",
Lastname: "",
Email: "",
DefaultPasswordInUse: false,
OauthState: "",
OauthNonce: "",
OauthCodeVerifier: "",
OauthProvider: "",
OauthReturnTo: "",
OauthIdToken: "",
}
}