migrate-hust: remove deprecated usage

This commit is contained in:
undefined committed 2021-09-05 20:37:06 +08:00
1 parent 37822f0025
commit fe340492b5
2 files changed
+5 -6

No files matched your search

+1 -2
View File
@@ -1,6 +1,5 @@
import { } from 'hydrooj';
import { md5, sha1 } from 'hydrooj/src/lib/crypto';
const { md5, sha1 } = global.Hydro.lib;
const RE_MD5 = /^[\da-fA-F]{32}$/;
function hash(password: string, stored: string) {