Skip to content
This repository
Browse code

account for :context when redirecting failed interactive login

  • Loading branch information...
commit 6ee5fc7c2e719f4c95e40a9b0b68e35d25430ba5 1 parent 776de46
Chas Emerick authored March 15, 2013

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  src/cemerick/friend/workflows.clj
2  src/cemerick/friend/workflows.clj
@@ -62,7 +62,7 @@
62 62
   (ring.util.response/redirect
63 63
     (let [param (str "&login_failed=Y&username="
64 64
                   (java.net.URLEncoder/encode (:username params "")))
65  
-          ^String login-uri (-> request ::friend/auth-config :login-uri)]
  65
+          ^String login-uri (-> request ::friend/auth-config :login-uri (#(str (:context request) %)))]
66 66
       (util/resolve-absolute-uri
67 67
         (str (if (.contains login-uri "?") login-uri (str login-uri "?"))
68 68
           param)

0 notes on commit 6ee5fc7

Please sign in to comment.
Something went wrong with that request. Please try again.