|
|
@ -27,7 +27,7 @@ import NcPluginMgrv2 from '~/helpers/NcPluginMgrv2'; |
|
|
|
import { NcError } from '~/helpers/catchError'; |
|
|
|
import { NcError } from '~/helpers/catchError'; |
|
|
|
import { BasesService } from '~/services/bases.service'; |
|
|
|
import { BasesService } from '~/services/bases.service'; |
|
|
|
import { extractProps } from '~/helpers/extractProps'; |
|
|
|
import { extractProps } from '~/helpers/extractProps'; |
|
|
|
import UserRefreshToken from "~/models/UserRefreshToken"; |
|
|
|
import UserRefreshToken from '~/models/UserRefreshToken'; |
|
|
|
|
|
|
|
|
|
|
|
@Injectable() |
|
|
|
@Injectable() |
|
|
|
export class UsersService { |
|
|
|
export class UsersService { |
|
|
@ -388,8 +388,8 @@ export class UsersService { |
|
|
|
|
|
|
|
|
|
|
|
await UserRefreshToken.insert({ |
|
|
|
await UserRefreshToken.insert({ |
|
|
|
token: refreshToken, |
|
|
|
token: refreshToken, |
|
|
|
fk_user_id: user.id |
|
|
|
fk_user_id: user.id, |
|
|
|
}) |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
setTokenCookie(param.res, refreshToken); |
|
|
|
setTokenCookie(param.res, refreshToken); |
|
|
|
|
|
|
|
|
|
|
@ -508,8 +508,8 @@ export class UsersService { |
|
|
|
|
|
|
|
|
|
|
|
await UserRefreshToken.insert({ |
|
|
|
await UserRefreshToken.insert({ |
|
|
|
token: refreshToken, |
|
|
|
token: refreshToken, |
|
|
|
fk_user_id: user.id |
|
|
|
fk_user_id: user.id, |
|
|
|
}) |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
setTokenCookie(param.res, refreshToken); |
|
|
|
setTokenCookie(param.res, refreshToken); |
|
|
|
|
|
|
|
|
|
|
|