forked from Wroclaw/WorkshopTasker
Update dependencies, fix (auto)import problems
This commit is contained in:
parent
267a83d484
commit
1d893c4a78
40 changed files with 5166 additions and 3047 deletions
|
@ -1,11 +1,13 @@
|
|||
/* global defineEventHandler, getCookie, setCookie, readBody, createError */
|
||||
import crypto from "crypto";
|
||||
import { defineEventHandler, getCookie, setCookie, readBody } from "h3";
|
||||
|
||||
import { database, data } from "../utils/database";
|
||||
import { database, type data } from "../utils/database";
|
||||
import { isString } from "../utils/isString";
|
||||
import { cookieSettings } from "../utils/rootUtils";
|
||||
import Snowflake from "~/utils/snowflake";
|
||||
|
||||
import { createError } from "#imports";
|
||||
|
||||
export function getPasswordHash(password: string) {
|
||||
return crypto.createHmac("sha512", "42")
|
||||
.update(password)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue