Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix potential NPE introduced in previous commit

  • Loading branch information...
commit a969539a81c10e173adf372b0b755fa2b766c7ca 1 parent d2c2f85
@jkk jkk authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/cemerick/friend/workflows.clj
View
2  src/cemerick/friend/workflows.clj
@@ -60,7 +60,7 @@
(defn interactive-login-redirect
[{:keys [params] :as request}]
(ring.util.response/redirect (let [param (str "&login_failed=Y&username=" (java.net.URLEncoder/encode
- (:username params)))
+ (:username params "")))
login-uri (-> request ::friend/auth-config :login-uri)]
(str (if (.contains login-uri "?") login-uri (str login-uri "?"))
param))))
Please sign in to comment.
Something went wrong with that request. Please try again.