mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2025-10-04 02:09:24 +02:00
Fix lint warnings
This commit is contained in:
parent
5987583ca3
commit
249cf52971
2 changed files with 2 additions and 2 deletions
|
@ -20,11 +20,11 @@ import { Router } from 'express'
|
||||||
import { BadRequest } from 'http-errors'
|
import { BadRequest } from 'http-errors'
|
||||||
import { Database } from '../database'
|
import { Database } from '../database'
|
||||||
import { sendLoginCode, signInByMailCode } from '../function/authentication/login-by-mail'
|
import { sendLoginCode, signInByMailCode } from '../function/authentication/login-by-mail'
|
||||||
|
import { isMailServerBlacklisted } from '../util/mail'
|
||||||
import {
|
import {
|
||||||
isSendMailLoginCodeRequest,
|
isSendMailLoginCodeRequest,
|
||||||
isSignInByMailCodeRequest
|
isSignInByMailCodeRequest
|
||||||
} from './validator'
|
} from './validator'
|
||||||
import { isMailServerBlacklisted } from '../util/mail'
|
|
||||||
|
|
||||||
export const createAuthRouter = (database: Database) => {
|
export const createAuthRouter = (database: Database) => {
|
||||||
const router = Router()
|
const router = Router()
|
||||||
|
|
|
@ -83,7 +83,7 @@ export const sendUninstallWarningMail = async ({ receiver, deviceName }: {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function isMailServerBlacklisted(mail: string) {
|
export function isMailServerBlacklisted (mail: string) {
|
||||||
const parts = mail.split('@')
|
const parts = mail.split('@')
|
||||||
const domain = parts[parts.length - 1]
|
const domain = parts[parts.length - 1]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue