移除一个未用到的常量
This commit is contained in:
parent
4f74504b14
commit
7343a40472
@ -13,7 +13,6 @@ import {
|
|||||||
} from 'service/email.svr'
|
} from 'service/email.svr'
|
||||||
import { uuid } from 'utils/security.util'
|
import { uuid } from 'utils/security.util'
|
||||||
|
|
||||||
const PASSWORD_SALT = '^6AssF(n,/]2>Iv<Nk|mEdFR'
|
|
||||||
class MailController extends BaseController {
|
class MailController extends BaseController {
|
||||||
/**
|
/**
|
||||||
* 通过邮件, 密码形式的登录
|
* 通过邮件, 密码形式的登录
|
||||||
@ -71,7 +70,7 @@ class MailController extends BaseController {
|
|||||||
await account.save()
|
await account.save()
|
||||||
record.status = CodeStatus.SUCCESS
|
record.status = CodeStatus.SUCCESS
|
||||||
await record.save()
|
await record.save()
|
||||||
const ztoken = await res.jwtSign({ id: account.id })
|
const ztoken = await res.jwtSign({ id: account.id, openid: account.openId, plat: PlatEnum.EMAIL })
|
||||||
return { token: ztoken }
|
return { token: ztoken }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user