feat(restore): rotate auth hash on restore
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-28 11:38:44 -05:00
parent 015ca30ac5
commit b1cfd16627
2 changed files with 56 additions and 2 deletions

View File

@@ -1457,6 +1457,11 @@ func (api *API) processRestoreFile(rAdminAction requestAdminAction, c *gin.Conte
if err := api.db.Reload(); err != nil {
log.Panicf("Unable to reload DB: %v", err)
}
// Rotate Auth Hashes
if err := api.rotateAllAuthHashes(); err != nil {
log.Panicf("Unable to rotate auth hashes: %v", err)
}
}
func (api *API) restoreData(zipReader *zip.Reader) error {