mirror of
https://github.com/dadosfera/maestro.git
synced 2026-10-31 09:29:07 +00:00
FIX: add fallback language to pt-br
This commit is contained in:
@@ -243,7 +243,7 @@ export class AuthController {
|
||||
@UseGuards(AuthGuard('google-login'))
|
||||
@Redirect()
|
||||
async googleOauthCallback(@Req() req) {
|
||||
const { url, email, token, language } = await this.callback(req);
|
||||
const { url, email, token, language = 'pt-br' } = await this.callback(req);
|
||||
if (url.searchParams.get('error')) return { url: url.href };
|
||||
|
||||
await this.authClient
|
||||
|
||||
Reference in New Issue
Block a user