Support custom login message and button

This commit is contained in:
Nick O'Leary
2024-12-16 16:58:13 +00:00
parent 7a3741165b
commit b7e96ce6bc
3 changed files with 54 additions and 1 deletions

View File

@@ -126,6 +126,14 @@ async function login(req,res) {
if (themeContext.login && themeContext.login.image) {
response.image = themeContext.login.image;
}
if (themeContext.login?.message) {
response.loginMessage = themeContext.login?.message
}
if (themeContext.login?.button) {
response.prompts = [
{ type: "button", ...themeContext.login.button }
]
}
}
res.json(response);
}