example

package
v0.0.0-...-4c82ae4 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: MIT Imports: 0 Imported by: 0

README

This directory includes a htpasswd file and an example login page so you can try out how this might work in practice. (Or just use the form when you install this in your nginx, that's fine too).

Usage

Run the htpasswd-login-form program with the flags -loginform ./example/page -htpasswd ./example/htpasswd and navigate to http://127.0.0.1:8000/login/.

The test login is test@example.com and the password is test.

To test the logout flow, navigate to http://127.0.0.1:8000/logout/

Inspiration and design

This form uses the fantastic water.css (light theme) classless stylesheet.

I have tried to make this form as accessible as possible - tab indexes should make sense, autofocusing happens, and the entire form ought to be screen-readable (although I haven't tested this). Please send me patches if this isn't working for you!

Development / updating the stylesheet

To update the vendored water.css file, follow the install instructions and copy the light.min.css and light.min.css.map files to the page/ subdirectory here.

Documentation

Overview

Package example is a directory containing an example nginx configuration and a tree of files for a login page.

Jump to

Keyboard shortcuts

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