diff --git a/apps/app-frontend/src/components/ui/AccountsCard.vue b/apps/app-frontend/src/components/ui/AccountsCard.vue index 0656c99..7727808 100644 --- a/apps/app-frontend/src/components/ui/AccountsCard.vue +++ b/apps/app-frontend/src/components/ui/AccountsCard.vue @@ -244,6 +244,7 @@ + + + diff --git a/apps/app-frontend/src/components/ui/skin-site/SkinSiteLoginModal.vue b/apps/app-frontend/src/components/ui/skin-site/SkinSiteLoginModal.vue new file mode 100644 index 0000000..7e8df94 --- /dev/null +++ b/apps/app-frontend/src/components/ui/skin-site/SkinSiteLoginModal.vue @@ -0,0 +1,146 @@ + + + diff --git a/apps/app-frontend/src/helpers/skin-site-api.ts b/apps/app-frontend/src/helpers/skin-site-api.ts index 1d0a723..97fc534 100644 --- a/apps/app-frontend/src/helpers/skin-site-api.ts +++ b/apps/app-frontend/src/helpers/skin-site-api.ts @@ -1,5 +1,4 @@ import { fetch as tauriFetch } from '@tauri-apps/plugin-http' - export const SKIN_SITE_ORIGIN = 'https://skin.starlight.cool' /** Where the skin site stores the JWT for this launcher. Kept separate from @@ -204,11 +203,10 @@ export function requestCaptcha(): Promise('captcha', { auth: false }) } -/** Submit the captcha answer; resolves to the clientId to use for login/register. */ +/** Submit the captcha rotation angle; resolves to the clientId used for login/register. */ export function verifyCaptcha(payload: { clientId: string - answer: string - [key: string]: unknown + degree: number }): Promise> { return skinSiteRequest('verifyCaptcha', { method: 'POST', body: payload, auth: false }) }