unused imports
Massimo Melina committed
May 22, 2022 at 09:55 UTC
9cb381871219e9dd6e10bdcc9db837b911d3c60c
2 files changed
+3
-5
server/src/api.auth.ts
+2
-2
@@ -1,10 +1,10 @@
1
// This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3
-import { getAccount, getCurrentUsername, getFromAccount } from './perm'
3
+import { getAccount, getCurrentUsername } from './perm'
4
import { verifyPassword } from './crypt'
5
import { ApiError, ApiHandler } from './apiMiddleware'
6
import { SRPParameters, SRPRoutines, SRPServerSession, SRPServerSessionStep1 } from 'tssrp6a'
7
-import { ADMIN_URI, FORBIDDEN, SESSION_DURATION } from './const'
7
+import { ADMIN_URI, SESSION_DURATION } from './const'
8
import { randomId } from './misc'
9
import Koa from 'koa'
10
import { changeSrpHelper, changePasswordHelper } from './api.helpers'
server/src/perm.ts
+1
-3
@@ -4,11 +4,9 @@ import _ from 'lodash'
4
import { hashPassword } from './crypt'
5
import { objRenameKey, setHidden, wantArray } from './misc'
6
import Koa from 'koa'
7
-import { defineConfig, saveConfigAsap, setConfig } from './config'
7
+import { defineConfig, saveConfigAsap } from './config'
8
import { createVerifierAndSalt, SRPParameters, SRPRoutines } from 'tssrp6a'
9
import events from './events'
10
-import { watchLoad } from './watchLoad'
11
-import { unlink } from 'fs'
10
11
export interface Account {
12
username: string, // we'll have username in it, so we don't need to pass it separately