Unify La Salle sign-in experience
This commit is contained in:
1 parent
ba2aca5c2a
commit
42f405e69c
13 files changed
+96
-41
No files matched your search
@@ -161,7 +161,7 @@ app.MapPost("/v1/authenticate", async (
|
||||
AuthenticationFlowOutcome.InvalidCredentials => Results.Json(
|
||||
new ErrorResponse(
|
||||
result.ErrorCode ?? "INVALID_INSTITUTIONAL_CREDENTIALS",
|
||||
"Credenciales institucionales inválidas."),
|
||||
"Usuario o contraseña incorrectos."),
|
||||
statusCode: StatusCodes.Status401Unauthorized),
|
||||
|
||||
_ => Unavailable(context, result.ErrorCode)
|
||||
|
||||
@@ -16,12 +16,12 @@ public sealed class SguCredentialProvider : CredentialProviderBase
|
||||
{
|
||||
yield return new CredentialProviderLabelControl(
|
||||
ControlKeys.ProviderLabel,
|
||||
"La Salle · Acceso SGU");
|
||||
"La Salle");
|
||||
yield return new CredentialProviderLogoControl(
|
||||
ControlKeys.ProviderLogo,
|
||||
"Acceso institucional SGU",
|
||||
"Inicio de sesión La Salle",
|
||||
ProviderTileIcon.Create());
|
||||
yield return new LargeLabelControl(ControlKeys.Heading, "Acceso institucional SGU")
|
||||
yield return new LargeLabelControl(ControlKeys.Heading, "Iniciar sesión")
|
||||
{
|
||||
// Isolate the CPFT_LARGE_TEXT heading from the compact provider tile
|
||||
// for the selected-layout variant. LogonUI still owns the typography.
|
||||
@@ -29,8 +29,8 @@ public sealed class SguCredentialProvider : CredentialProviderBase
|
||||
};
|
||||
yield return new SmallLabelControl(
|
||||
ControlKeys.InformationLabel,
|
||||
"Usa tu clave institucional (DO, AL o AD + 6 dígitos) y contraseña.");
|
||||
yield return new TextboxControl(ControlKeys.UserName, "Clave institucional");
|
||||
"Escribe tu usuario y contraseña.");
|
||||
yield return new TextboxControl(ControlKeys.UserName, "Usuario");
|
||||
SecurePasswordTextboxControl password = new(ControlKeys.Password, "Contraseña");
|
||||
yield return password;
|
||||
yield return new SubmitButtonControl(ControlKeys.Submit, "Iniciar sesión", password);
|
||||
|
||||
@@ -36,7 +36,7 @@ internal sealed class SguCredentialTile : CredentialTile3
|
||||
{
|
||||
if (!UserIdentityClassifier.TryParse(userNameControl.Text, out UserIdentity? identity) || identity is null)
|
||||
{
|
||||
return Failure("La clave debe usar DO, AL o AD seguido de seis dígitos.");
|
||||
return Failure("El usuario debe usar DO, AL o AD seguido de seis dígitos.");
|
||||
}
|
||||
|
||||
SecureString securePassword = passwordControl.Password;
|
||||
@@ -67,7 +67,7 @@ internal sealed class SguCredentialTile : CredentialTile3
|
||||
|
||||
if (decision.Kind == BrokerDecisionKind.InvalidCredentials)
|
||||
{
|
||||
return Failure("Credenciales institucionales inválidas.");
|
||||
return Failure("Usuario o contraseña incorrectos.");
|
||||
}
|
||||
|
||||
string domain = decision.Kind == BrokerDecisionKind.Authorized
|
||||
@@ -82,7 +82,7 @@ internal sealed class SguCredentialTile : CredentialTile3
|
||||
IsSuccess = true,
|
||||
StatusIcon = decision.Kind == BrokerDecisionKind.Unavailable ? StatusIcon.Warning : StatusIcon.None,
|
||||
StatusText = decision.Kind == BrokerDecisionKind.Unavailable
|
||||
? "Servicio institucional no disponible; Windows validará la última contraseña de dominio registrada."
|
||||
? "El servicio de autenticación no está disponible; Windows validará la última contraseña de dominio registrada."
|
||||
: null,
|
||||
Domain = domain,
|
||||
Username = userName,
|
||||
|
||||
Reference in new issue
Block a user