feat: support local login for non-built-in users (#911)

Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
This commit is contained in:
Yixiang Zhao
2022-07-26 19:27:24 +08:00
committed by GitHub
parent bdc5c92ef0
commit 3400fa1e9c
2 changed files with 10 additions and 1 deletions

View File

@ -191,6 +191,10 @@ class LoginPage extends React.Component {
values["type"] = "saml";
}
if (this.state.owner != null) {
values["organization"] = this.state.owner;
}
AuthBackend.login(values, oAuthParams)
.then((res) => {
if (res.status === "ok") {