chiark / gitweb /
Cleanup: Remove an old piece of junk master
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 3 Nov 2015 18:59:27 +0000 (18:59 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 3 Nov 2015 18:59:31 +0000 (18:59 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
junk [deleted file]

diff --git a/junk b/junk
deleted file mode 100644 (file)
index ebdec06..0000000
--- a/junk
+++ /dev/null
@@ -1,30 +0,0 @@
- if ( form submission is login request ) {
-     check login details, if wrong print error and quit
-     $authreq->record_login(...username...);
- }
- if ( !$authreq->check() ) {
-     display login form, quit
-
-
- if ( form submission is login request ) {
-     check login details, if wrong print error and quit
-     $authreq->record_login(...username...);
- }
- if ( form submission is logout request ) {
-     die unless $authreq->mutate();
-     my $logged_out_user = $authreq->logout();
-     if (!defined $logged_out_user) {
-        print "you are not logged in" error and quit
-     } else {
-        print "goodbye $username you are now logged out" and quit
-     }
- }
- if ( !$authreq->check() ) {
-     display login form, quit
-
-
-advantages of cookie
- - user can sort of log out by clearing cookies
- - sophisticated applications can have get-requests
-
-