Remove last usage of auth/branding route
This commit is contained in:
@@ -6,7 +6,6 @@ exports = module.exports = {
|
||||
passwordResetRequest,
|
||||
passwordReset,
|
||||
setupAccount,
|
||||
getBranding
|
||||
};
|
||||
|
||||
const assert = require('assert'),
|
||||
@@ -116,14 +115,3 @@ async function setupAccount(req, res, next) {
|
||||
|
||||
next(new HttpSuccess(201, { accessToken }));
|
||||
}
|
||||
|
||||
async function getBranding(req, res, next) {
|
||||
// still used in passwordreset and setupaccount views. we should server render them
|
||||
const result = {
|
||||
cloudronName: await branding.getCloudronName(),
|
||||
footer: await branding.renderFooter(),
|
||||
language: await cloudron.getLanguage(),
|
||||
};
|
||||
|
||||
next(new HttpSuccess(200, result));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user