core&ui: add login methods to response body (#1165)

This commit is contained in:
Baoshuo authored and GitHub committed 2026-05-24 22:52:08 +08:00
1 parent bbd7fbc852
commit ce14b98184
5 files changed
+9 -5

No files matched your search

+1
View File
@@ -204,6 +204,7 @@ class HomeSecurityHandler extends Handler {
])),
geoipProvider: this.ctx.get('geoip')?.provider,
relations,
loginMethods: this.loginMethods,
};
}
+4 -1
View File
@@ -48,7 +48,10 @@ class UserLoginHandler extends Handler {
async get() {
this.response.template = 'user_login.html';
this.response.body.loginMethods = this.loginMethods;
this.response.body = {
builtInLogin: system.get('server.login'),
loginMethods: this.loginMethods,
};
}
@param('uname', Types.Username)