Permalink
Browse files

fix potential NPE introduced in previous commit

  • Loading branch information...
1 parent d2c2f85 commit a969539a81c10e173adf372b0b755fa2b766c7ca @jkk jkk committed Jan 2, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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))))

0 comments on commit a969539

Please sign in to comment.