Skip to content

Commit

Permalink
tweak(core): temporarily disabled zap one-click-login
Browse files Browse the repository at this point in the history
  • Loading branch information
tabarra committed Mar 16, 2022
1 parent 5f45107 commit d91cd77
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/webroutes/authentication/verifyPassword.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ module.exports = async function AuthVerify(ctx) {
template: 'normal',
message: null,
citizenfxDisabled: !globals.adminVault.providers.citizenfx.ready,
discordDisabled: true,
};

try {
Expand Down
8 changes: 7 additions & 1 deletion src/webroutes/authentication/verifyZapToken.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,18 @@ const usedTokens = new Set();
* @param {object} ctx
*/
module.exports = async function AuthVerify(ctx) {
//FIXME: disabled for now
return ctx.utils.render('login', {
template: 'normal',
message: 'ZAP one-click-login temporarily disabled.',
citizenfxDisabled: !globals.adminVault.providers.citizenfx.ready,
});

const errorPrefix = 'Zap JWT error:';
const renderData = {
template: 'normal',
message: 'Invalid token. Please login using one of the options above.',
citizenfxDisabled: !globals.adminVault.providers.citizenfx.ready,
discordDisabled: true,
};

//Sanity check
Expand Down

0 comments on commit d91cd77

Please sign in to comment.