return use
This commit is contained in:
parent
71ff41bc32
commit
aa5da74b6a
@ -12,6 +12,7 @@ export async function ApiLogin(call: ApiCall<ReqLogin, ResLogin>) {
|
||||
let sso = await UserUtil.createSsoToken(user.uid);
|
||||
|
||||
call.succ({
|
||||
__ssoToken: sso
|
||||
__ssoToken: sso,
|
||||
user: user
|
||||
})
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
import { CurrentUser } from '../../../models/CurrentUser';
|
||||
import { BaseConf, BaseRequest, BaseResponse } from '../base';
|
||||
|
||||
export interface ReqLogin extends BaseRequest {
|
||||
@ -7,6 +8,7 @@ export interface ReqLogin extends BaseRequest {
|
||||
|
||||
export interface ResLogin extends BaseResponse {
|
||||
__ssoToken: string;
|
||||
user: CurrentUser;
|
||||
}
|
||||
|
||||
export const conf: BaseConf = {
|
||||
|
Loading…
Reference in New Issue
Block a user