feat(server)!: move welcome message to settings (#6157)

* feat(server): move welcome message to settings

* chore: open api
This commit is contained in:
Jason Rasmussen
2024-01-04 00:00:17 -05:00
committed by GitHub
parent 52e92e9bb4
commit f8d64be13c
13 changed files with 59 additions and 18 deletions

View File

@@ -78,14 +78,10 @@ export class ServerInfoService {
async getConfig(): Promise<ServerConfigDto> {
const config = await this.configCore.getConfig();
// TODO move to system config
const loginPageMessage = process.env.PUBLIC_LOGIN_PAGE_MESSAGE || '';
const isInitialized = await this.userRepository.hasAdmin();
return {
loginPageMessage,
loginPageMessage: config.server.loginPageMessage,
trashDays: config.trash.days,
oauthButtonText: config.oauth.buttonText,
isInitialized,