Documentation
¶
Overview ¶
Package srpweb serves the browser half of the password sign-in (docs/decisions/0076): one script, this origin's own, that runs SRP-6a in the page so the password is never sent. It is a file and not an inline script because the pages' policy is `default-src 'self'`.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Form ¶
func Form(o FormOptions) string
Form is the password block of a sign-in page: a disclosure holding a form the script drives. The inputs carry no `name`, so a browser that does not run the script submits nothing and the password goes nowhere else.
Types ¶
type FormOptions ¶
type FormOptions struct {
// State is the signed state of the page's request.
State string
// Summary is the disclosure's title, Note the sentence under it and Caution
// the warning after the form (empty for none).
Summary, Note, Caution string
// Start, Finish and Script are the paths of the two endpoints and of [Handler].
Start, Finish, Script string
}
FormOptions is what Form needs.