Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

For +site, h2 lookup of existing user :pass fails as map keyword is :PASS #38

Merged
merged 1 commit into from

2 participants

@tmcf

views/auth.clj lookup of :pass for existing user fails as the db lookup map key is :PASS.
Changed h2 db-spec to use :naming :keys clojure.string/lower-case.

This works ok for +site sample, not sure if there is a downside for other apps.

@tmcf tmcf For h2, change db-spec :naming for :keys from upper to lower case. Ot…
…herwise views/auth.clj lookup of :pass for existing user fails as the map key was :PASS.
4e3e80b
@yogthos
Owner

looks good thanks

@yogthos yogthos merged commit 2149b67 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 29, 2013
  1. @tmcf

    For h2, change db-spec :naming for :keys from upper to lower case. Ot…

    tmcf authored
    …herwise views/auth.clj lookup of :pass for existing user fails as the map key was :PASS.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/leiningen/new/luminus/dbs/h2_schema.clj
View
2  src/leiningen/new/luminus/dbs/h2_schema.clj
@@ -9,7 +9,7 @@
:subname (str (io/resource-path) db-store)
:user "sa"
:password ""
- :naming {:keys clojure.string/upper-case
+ :naming {:keys clojure.string/lower-case
:fields clojure.string/upper-case}})
(defn initialized?
"checks to see if the database schema is present"
Something went wrong with that request. Please try again.