Skip to content

Commit

Permalink
Increased time tolerances for CitizenFX login. Minor message tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
tabarra committed Mar 30, 2020
1 parent a4c61d7 commit e4600cd
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ games { 'gta5' }
author 'Tabarra'
description 'Remotely Manage & Monitor your GTA5 FiveM Server'
repository 'https://github.com/tabarra/txAdmin'
version '2.0.0'
version '2.0.1'

server_script 'starter.js'

Expand Down
2 changes: 1 addition & 1 deletion src/components/authenticator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ module.exports = class Authenticator {
}

let structureIntegrityTest = jsonData.some((x) => {
if(typeof x.name !== 'string' || x.name < 6) return true;
if(typeof x.name !== 'string' || x.name < 3) return true;
if(typeof x.master !== 'boolean') return true;
if(typeof x.password_hash !== 'string' || !x.password_hash.startsWith('$2')) return true;
if(typeof x.providers !== 'object') return true;
Expand Down
2 changes: 1 addition & 1 deletion src/components/authenticator/providers/CitizenFX.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports = class CitizenFXProvider {
client_secret: 'txadmin_test',
response_types: ['openid']
});
this.client[custom.clock_tolerance] = 15;
this.client[custom.clock_tolerance] = 2*60*60; //Two hours due to the DST change. Reduce to 300s.
if(globals.config.verbose) log('CitizenFX Provider configured.');
this.ready = true;
} catch (error) {
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const resourceName = GetCurrentResourceName();
//Getting fxserver version
const fxServerVersion = getBuild(GetConvar('version', 'false'));
if(!fxServerVersion){
logDie(`version convar not set or in the wrong format`);
logDie(`This version of FXServer is NOT compatible with txAdmin v2. Please update it to build 2310 or above. (version convar not set or in the wrong format)`);
}

//Getting txAdmin version
Expand Down
8 changes: 6 additions & 2 deletions version.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.0.0",
"version": "2.0.1",
"changelog": "Deprecated Message. Please Update.",
"allVersions": [
{
Expand Down Expand Up @@ -143,8 +143,12 @@
"changelog": "LEGACY: added support for servers without run.cmd"
},
{
"version": "v2.0.0",
"version": "2.0.0",
"changelog": "Integrated with FiveM! New Responsive Interface! New Auth system. Migrated from Express to Koa. Got rid of setup, and admin-add scripts. Changed the `data` folder location. And many many more tweaks and improvements!"
},
{
"version": "2.0.1",
"changelog": "Increased time tolerances for CitizenFX login. Minor message tweaks."
}
]
}
2 changes: 1 addition & 1 deletion web/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ <h2>Settings</h2>
</div>

<div class="form-group row">
<label for="frmFXServer-cfgPath" class="col-sm-3 col-form-label">Startup Script Path
<label for="frmFXServer-cfgPath" class="col-sm-3 col-form-label">CFG File Path
<span class="text-danger">*</span></label>
<div class="col-sm-9">
<input type="text" class="form-control" id="frmFXServer-cfgPath" value="{{fxserver.cfgPath}}"
Expand Down

0 comments on commit e4600cd

Please sign in to comment.