From 626f0b9f8bbee7ded581710896e19e45acd6ac4b Mon Sep 17 00:00:00 2001 From: Sergey Shatunov Date: Fri, 14 Jun 2024 06:34:06 +0800 Subject: [PATCH] Add template for device flow page --- .../login-oauth2-device-verify-user-code.ftl | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 theme/keywind/login/login-oauth2-device-verify-user-code.ftl diff --git a/theme/keywind/login/login-oauth2-device-verify-user-code.ftl b/theme/keywind/login/login-oauth2-device-verify-user-code.ftl new file mode 100644 index 000000000..ddcb81d9f --- /dev/null +++ b/theme/keywind/login/login-oauth2-device-verify-user-code.ftl @@ -0,0 +1,28 @@ +<#import "template.ftl" as layout> +<#import "components/atoms/button.ftl" as button> +<#import "components/atoms/button-group.ftl" as buttonGroup> +<#import "components/atoms/form.ftl" as form> +<#import "components/atoms/input.ftl" as input> + +<@layout.registrationLayout; section> + <#if section = "header"> + ${msg("oauth2DeviceVerificationTitle")} + <#elseif section = "form"> + <@form.kw action=url.oauth2DeviceVerificationAction method="post"> + <@input.kw + autocomplete="off" + autofocus=true + label=msg("verifyOAuth2DeviceUserCode") + name="device_user_code" + type="text" + dir="ltr" + /> + + <@buttonGroup.kw> + <@button.kw color="primary" name="submitAction" type="submit"> + ${msg("doSubmit")} + + + + +