Skip to content

Commit 64026d4

Browse files
fix(auth): improve error handling for disabling password authentication
1 parent 3f724b7 commit 64026d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/environment/command/organization.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ func (h *organizationCommandHandler) changePasswordAuthentication(
9898
if cmd.PasswordAuthenticationEnabled {
9999
h.organization.EnableAuthenticationType(proto.AuthenticationType_AUTHENTICATION_TYPE_PASSWORD)
100100
} else {
101-
if err := h.organization.DisableAuthenticationType(proto.AuthenticationType_AUTHENTICATION_TYPE_PASSWORD); err != nil {
101+
err := h.organization.DisableAuthenticationType(proto.AuthenticationType_AUTHENTICATION_TYPE_PASSWORD)
102+
if err != nil {
102103
return err
103104
}
104105
}

0 commit comments

Comments
 (0)