import { getUser } from "https://deno.land/x/netzo@0.2.84/plugins/portals/utils/db.ts";
Gets the user with the given login from the database.
Examples
Example 1
Example 1
import { getUser } from "netzo/plugins/portals/utils/db.ts";
const user = await getUser("jack");
user?.login; // Returns "jack"
user?.sessionId; // Returns "xxx"
user?.role; // Returns "admin"