mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-06 22:20:55 +03:00
implemented PKCE auth (#921)
* implemented PKCE auth * removed node-jose * added PKCE tests
This commit is contained in:
committed by
Donovan Preston
parent
20528eb0d1
commit
7ccf462bf8
@@ -5,8 +5,6 @@ const assets = require('../common/assets');
|
||||
|
||||
module.exports = function(req) {
|
||||
const locale = req.language || 'en-US';
|
||||
const userInfo = req.userInfo || { avatar: assets.get('user.svg') };
|
||||
userInfo.loggedIn = !!userInfo.access_token;
|
||||
return {
|
||||
locale,
|
||||
translate: locales.getTranslator(locale),
|
||||
@@ -21,7 +19,7 @@ module.exports = function(req) {
|
||||
fira: false,
|
||||
fileInfo: {},
|
||||
cspNonce: req.cspNonce,
|
||||
user: userInfo,
|
||||
user: { avatar: assets.get('user.svg'), loggedIn: false },
|
||||
layout
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user