Ian Bicking: the old part of his blog

Re: Little Apps Instead of Little Frameworks

Sometimes the login form is embedded into another page (the index page). In that case just let the main app handle the form. The login routine could work as middleware, operating just on that URL, processing the credentials if present, and setting a message for the main application ("success", "user not found", "invalid password"). Then if the application has a general way to display messages, it can convert the message to something more reasonable and display it.

Comment on Little Apps Instead of Little Frameworks
by Mike Orr