mirror of
https://github.com/teamhanko/hanko.git
synced 2025-10-30 08:07:28 +08:00
16 lines
398 B
Go
16 lines
398 B
Go
package dto
|
|
|
|
import (
|
|
"github.com/teamhanko/hanko/config"
|
|
)
|
|
|
|
// PublicConfig is the part of the configuration that will be shared with the frontend
|
|
type PublicConfig struct {
|
|
Password config.Password `json:"password"`
|
|
}
|
|
|
|
// FromConfig Returns a PublicConfig from the Application configuration
|
|
func FromConfig(config config.Config) PublicConfig {
|
|
return PublicConfig{Password: config.Password}
|
|
}
|