mirror of
https://github.com/dadosfera/maestro.git
synced 2026-10-17 01:39:08 +00:00
FIX: default value to header origin
This commit is contained in:
@@ -86,7 +86,7 @@ export class AuthController {
|
||||
async signIn(
|
||||
@Body() { username, password, totp }: AuthSignInReq,
|
||||
@Language() language: LanguageEnum,
|
||||
@Headers('origin') origin: string,
|
||||
@Headers('origin') origin = '',
|
||||
): Promise<AuthSignInRes> {
|
||||
this.logger.info('/auth - SignIn');
|
||||
const frontHost = origin.replace(/^https?:\/\//, '');
|
||||
|
||||
Reference in New Issue
Block a user