def username_password_authn(environ, start_response, reference, key, redirect_uri, headers=None):
 logger.info('The login page')
 kwargs = dict(mako_template='login.mako', template_lookup=LOOKUP)
 if headers:
  kwargs['headers'] = headers
 resp = Response(**kwargs)
 argv = {'action': '/verify', 'login': '', 'password': '', 'key': key, 'authn_reference': reference, 'redirect_uri': redirect_uri}
 logger.info(('do_authentication argv: %s' % argv))
 return resp(environ, start_response, **argv)

def username_password_authn ( environ , start_response , reference , key , redirect_uri , headers = None ) : logger . info ( 'The login page' ) kwargs = dict ( mako_template = 'login.mako' , template_lookup = LOOKUP ) if headers : kwargs [ 'headers' ] = headers resp = Response ( ** kwargs ) argv = { 'action' : '/verify' , 'login' : '' , 'password' : '' , 'key' : key , 'authn_reference' : reference , 'redirect_uri' : redirect_uri } logger . info ( ( 'do_authentication argv: %s' % argv ) ) return resp ( environ , start_response , ** argv )
display the login form .