anchor.diff:              reply_json(Req, {struct, [{errors, {struct, Errors}}]}, 400)
       end.
   
  +reset_read_only_user_creds() ->
  +    ns_config:set(read_only_user_creds, null).
  +
   handle_settings_read_only_user_delete(Req) ->
       case menelaus_auth:is_read_only_admin_exist() of
           false ->
               reply_json(Req, <<"Read-Only admin does not exist">>, 404);
           true ->
  -            ns_config:set(read_only_user_creds, null),
  +            reset_read_only_user_creds(),
               reply_json(Req, [], 200)
       end.
   
  
positive.code:     ValidateOnly = proplists:get_value("just_validate", Req:parse_qs()) =:= "1",
      U = proplists:get_value("username", PostArgs),
      P = proplists:get_value("password", PostArgs),
      Errors = [{K, V} || {K, V} <- [maybe_invalid(username, U),
                                     maybe_invalid(password, P)], V =/= true],
      case Errors of
          [] ->
              case ValidateOnly of
  
negative.code:                     ns_config:set(rest_creds,
                                    [{creds,
                                      [{U, [{password, P}]}]}]),
  
                      %% NOTE: this to avoid admin user name to be equal
                      %% to read only user name
                      reset_read_only_user_creds(),
  
                      menelaus_ui_auth:reset()
  
  