loginpage

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package loginpage 负责渲染 CLI 登录流程临时 HTTP 服务使用的页面。

页面与路由、OAuth 会话分离:本包不读取账号数据,也不处理表单提交,只渲染经 html/template 转义后的展示内容。模板嵌入 binary,使手工安装的 CLI 不依赖外部文件。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteCallbackRelay

func WriteCallbackRelay(w io.Writer) error

WriteCallbackRelay 渲染将 pixiv:// fragment 安全地提交到本地 /manual 路由的页面。

func WriteManual

func WriteManual(w io.Writer, loginURL string) error

WriteManual 渲染包含 Pixiv 登录链接和手动回填表单的页面。

func WriteResult

func WriteResult(w io.Writer, success bool) error

WriteResult 渲染固定的登录完成页面。失败文案不包含 OAuth 或本地存储错误细节。

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL