fix: review nitpicks

This commit is contained in:
Stavros
2026-01-16 17:53:08 +02:00
parent 95ed36db8b
commit 5093200023
3 changed files with 5 additions and 5 deletions

View File

@@ -50,7 +50,7 @@ export const LoginPage = () => {
const redirectUri = searchParams.get("redirect_uri"); const redirectUri = searchParams.get("redirect_uri");
const oauthProviders = providers.filter( const oauthProviders = providers.filter(
(provider) => provider.id !== "local" && provider.id != "ldap", (provider) => provider.id !== "local" && provider.id !== "ldap",
); );
const userAuthConfigured = const userAuthConfigured =
providers.find( providers.find(

View File

@@ -42,7 +42,7 @@ var userContext = config.UserContext{
IsLoggedIn: true, IsLoggedIn: true,
IsBasicAuth: false, IsBasicAuth: false,
OAuth: false, OAuth: false,
Provider: "username", Provider: "local",
TotpPending: false, TotpPending: false,
OAuthGroups: "", OAuthGroups: "",
TotpEnabled: false, TotpEnabled: false,

View File

@@ -147,7 +147,7 @@ func TestProxyHandler(t *testing.T) {
Username: "testuser", Username: "testuser",
Name: "testuser", Name: "testuser",
Email: "testuser@example.com", Email: "testuser@example.com",
Provider: "username", Provider: "local",
TotpPending: false, TotpPending: false,
OAuthGroups: "", OAuthGroups: "",
}) })
@@ -164,7 +164,7 @@ func TestProxyHandler(t *testing.T) {
Email: "testuser@example.com", Email: "testuser@example.com",
IsLoggedIn: true, IsLoggedIn: true,
OAuth: false, OAuth: false,
Provider: "username", Provider: "local",
TotpPending: false, TotpPending: false,
OAuthGroups: "", OAuthGroups: "",
TotpEnabled: false, TotpEnabled: false,
@@ -194,7 +194,7 @@ func TestProxyHandler(t *testing.T) {
IsLoggedIn: true, IsLoggedIn: true,
IsBasicAuth: true, IsBasicAuth: true,
OAuth: false, OAuth: false,
Provider: "basic", Provider: "local",
TotpPending: false, TotpPending: false,
OAuthGroups: "", OAuthGroups: "",
TotpEnabled: true, TotpEnabled: true,