blob: 7d9f52e727297f4a91cac8592e793d476e8de476 [file] [log] [blame]
Andreuabbcb7e2019-09-21 18:22:14 +02001<?php
Andreu2457e402019-09-22 00:52:41 +02002 require '../credentials.php';
Andreuabbcb7e2019-09-21 18:22:14 +02003 require '../php/utils.php';
Andreudd6cfb42019-09-22 19:52:39 +02004
5 $users = get_users(0, false);
6 foreach ($users as &$user) {
7 if ($user["mort"]) continue;
8
9 $user["nopassword"] = $user["md5password"] == "" ? "nopassword" : "";
10 unset($user["md5password"]);
Andreu20cbd1d2019-09-22 00:00:57 +020011 }
Andreudd6cfb42019-09-22 19:52:39 +020012
13 echo json_encode($users);
Andreuabbcb7e2019-09-21 18:22:14 +020014?>