die("Database defines accounts in zone %s, which is not configured", zone_name);
clist_init(&aa->tokens);
+ uint allow_passwd_auth;
+ if (!get_uint(ja, "p", &allow_passwd_auth))
+ allow_passwd_auth = 0;
+ aa->allow_passwd_auth = allow_passwd_auth;
+
struct json_node **jts = get_array(ja, "t");
if (jts)
{
struct json_node *ja = json_new_object(js);
json_array_append(jas, ja);
json_object_set(ja, "z", json_new_string_ref(js, aa->zone->name));
+ json_object_set(ja, "p", json_new_number(js, aa->allow_passwd_auth));
struct json_node *jts = json_new_array(js);
CLIST_FOR_EACH(struct auth_token *, at, aa->tokens)
{