@@ -173,6 +173,8 @@ update(Config, _State) ->
authenticate(#{auth_method := _}, _) ->
ignore;
+authenticate(#{password := undefined}, _) ->
+ {error, bad_username_or_password};
authenticate(
#{password := Password} = Credential,
#{
@@ -160,6 +160,8 @@ destroy(#{resource_id := ResourceId}) ->
@@ -110,6 +110,8 @@ destroy(#{resource_id := ResourceId}) ->
@@ -113,6 +113,8 @@ destroy(#{resource_id := ResourceId}) ->
@@ -148,6 +148,8 @@ destroy(#{resource_id := ResourceId}) ->
@@ -109,6 +109,8 @@ destroy(#{resource_id := ResourceId}) ->