> > Are you using the keyword-params middleware? It's not in the code you > initially provided, and you don't mention adding it after seeing the note > about it being required. If you are submitting a value for the >`username` parameter to /login, but the failure redirect does not echo >that username, then a lack of keyword-params is indicated.
Thank you, but I believe I have all the other needed software libraries: (ns caddys-clojure.core (:gen-class) (:import (java.net URL)) (:require [clojure.string :as st] [clojure.java.io :as io] [clojure.java.jdbc :as jdbc] [clojure.data.json :as json] [clj-yaml.core :as yaml] [clj-time.core :as tyme] [fs.core :as fs] [clj-time.format :as tyme-format] [caddys-clojure.debugging :as debug] [caddys-clojure.memory_display :as mem] [caddys-clojure.dates_as_strings :as das] [caddys-clojure.fake-data-for-development :as fd] [net.cgrand.enlive-html :as enlive] [compojure.core :refer :all] [compojure.handler :as handler] [compojure.route :as route] [cemerick.friend :as friend] (cemerick.friend [workflows :as workflows] [credentials :as creds])) (:use [ring.util.response] [ring.middleware.params] [ring.middleware.keyword-params] [ring.middleware.nested-params] [ring.middleware.file] [ring.middleware.resource] [ring.middleware.cookies] [ring.middleware.file-info] [ring.middleware.session] [ring.middleware.session.cookie] [ring.middleware.session.store] [ring.adapter.jetty :only [run-jetty]])) When I try to log in, I get no error, but I am not logged in. I get "login_failed=Y". And this is with me copying and pasting the username and password from the "users" var that I copied from the documentation on github. On Jan 16, 5:47 am, Chas Emerick <c...@cemerick.com> wrote: > On Jan 16, 2013, at 1:45 AM, larry google groups wrote: > > > > > > > > > > > For anyone else who might make the same mistake I did, I changed this: > > > (GET "/admin" request (friend/authorize #{::admin} (admin > > request))) > > > to this: > > > (GET "/admin" request (friend/authorize #{::admin} {} (admin > > request))) > > > adding an empty map before the string that is my actual HTML page. > > That resolved the error in the stack trace. > > > However, my login still fails. I copy and paste both the username and > > password, very carefully, into the login form, and hit submit, only to > > get redirected to: > > >http://localhost:30000/login?&login_failed=Y&username= > > > I have not idea why this fails. I thought I had followed the > > documentation carefully, but I suppose there is always something that > > I miss. > > Are you using the keyword-params middleware? It's not in the code you > initially provided, and you don't mention adding it after seeing the note > about it being required. If you are submitting a value for the `username` > parameter to /login, but the failure redirect does not echo that username, > then a lack of keyword-params is indicated. > > - Chas -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en