mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 15:29:42 +02:00
style(auth): remove comments and change error
This commit is contained in:
parent
dc067b3308
commit
b09f491f62
4 changed files with 2 additions and 3 deletions
|
@ -26,7 +26,7 @@ type settingsUpdatePayload struct {
|
|||
|
||||
func (payload *settingsUpdatePayload) Validate(r *http.Request) error {
|
||||
if *payload.AuthenticationMethod != 1 && *payload.AuthenticationMethod != 2 && *payload.AuthenticationMethod != 3 {
|
||||
return portainer.Error("Invalid authentication method value. Value must be one of: 1 (internal) or 2 (LDAP/AD)")
|
||||
return portainer.Error("Invalid authentication method value. Value must be one of: 1 (internal), 2 (LDAP/AD) or 3 (OAuth)")
|
||||
}
|
||||
if payload.LogoURL != nil && *payload.LogoURL != "" && !govalidator.IsURL(*payload.LogoURL) {
|
||||
return portainer.Error("Invalid logo URL. Must correspond to a valid URL format")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue