Skip to content

Commit

Permalink
Correctly display MFA-related configuration in devconsole UI.
Browse files Browse the repository at this point in the history
  • Loading branch information
zyro committed Oct 22, 2024
1 parent 577001b commit 7126240
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ All notable changes to this project are documented below.
The format is based on [keep a changelog](http://keepachangelog.com) and this project uses [semantic versioning](http://semver.org).

## [Unreleased]
### Fixed
- Correctly display MFA-related configuration in devconsole UI.

## [3.24.1] - 2024-10-21
### Changed
Expand Down
3 changes: 3 additions & 0 deletions server/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ func (c *config) Clone() (Config, error) {
configIAP := *(c.IAP)
configSatori := *(c.Satori)
configStorage := *(c.Storage)
configMfa := *(c.MFA)
configGoogleAuth := *(c.GoogleAuth)
nc := &config{
Name: c.Name,
Expand All @@ -549,6 +550,8 @@ func (c *config) Clone() (Config, error) {
Satori: &configSatori,
GoogleAuth: &configGoogleAuth,
Storage: &configStorage,
MFA: &configMfa,
Limit: c.Limit,
}
nc.Socket.CertPEMBlock = make([]byte, len(c.Socket.CertPEMBlock))
copy(nc.Socket.CertPEMBlock, c.Socket.CertPEMBlock)
Expand Down

0 comments on commit 7126240

Please sign in to comment.