Skip to content

Commit

Permalink
fix: cfx.re login not working in some cases
Browse files Browse the repository at this point in the history
The issue affected only admins which forum username does not match the
admin name in txAdmin.
  • Loading branch information
tabarra committed Dec 31, 2023
1 parent 71e54b4 commit 1dc8454
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/webroutes/authentication/providerCallback.ts
Expand Up @@ -61,7 +61,7 @@ export default async function AuthProviderCallback(ctx: InitializedCtx) {
//Setting session
const sessData = {
type: 'cfxre',
username: userInfo.name,
username: vaultAdmin.name,
csrfToken: ctx.txAdmin.adminVault.genCsrfToken(),
expiresAt: Date.now() + 86_400_000, //24h,
identifier: fivemIdentifier,
Expand Down
2 changes: 1 addition & 1 deletion fxmanifest.lua
Expand Up @@ -5,7 +5,7 @@
author 'Tabarra'
description 'Remotely Manage & Monitor your GTA5 FiveM Server'
repository 'https://github.com/tabarra/txAdmin'
version '7.0.0-beta1'
version '7.0.0-beta2-dev'
ui_label 'txAdmin'

rdr3_warning 'I acknowledge that this is a prerelease build of RedM, and I am aware my resources *will* become incompatible once RedM ships.'
Expand Down

0 comments on commit 1dc8454

Please sign in to comment.