mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 14:50:55 +03:00
WIP new WebAdmin: remove some hard coded strings
so they can be localized Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -164,7 +164,8 @@ func (c *HTTPFsConfig) validate() error {
|
||||
|
||||
// ValidateAndEncryptCredentials validates the config and encrypts credentials if they are in plain text
|
||||
func (c *HTTPFsConfig) ValidateAndEncryptCredentials(additionalData string) error {
|
||||
if err := c.validate(); err != nil {
|
||||
err := c.validate()
|
||||
if err != nil {
|
||||
var errI18n *util.I18nError
|
||||
errValidation := util.NewValidationError(fmt.Sprintf("could not validate HTTP fs config: %v", err))
|
||||
if errors.As(err, &errI18n) {
|
||||
|
||||
Reference in New Issue
Block a user