pre-baked Route Auth value
Added forwardUrl alias for `PluginR "browserid" []` as in other plugins (e.g. GoogleEmail2 and OpenID).
This commit is contained in:
parent
adc259a8e8
commit
13f0eb3895
@ -9,6 +9,7 @@ module Yesod.Auth.BrowserId
|
|||||||
, BrowserIdSettings
|
, BrowserIdSettings
|
||||||
, bisAudience
|
, bisAudience
|
||||||
, bisLazyLoad
|
, bisLazyLoad
|
||||||
|
, forwardUrl
|
||||||
) where
|
) where
|
||||||
|
|
||||||
import Yesod.Auth
|
import Yesod.Auth
|
||||||
@ -28,8 +29,10 @@ import Data.Default
|
|||||||
pid :: Text
|
pid :: Text
|
||||||
pid = "browserid"
|
pid = "browserid"
|
||||||
|
|
||||||
complete :: Route Auth
|
forwardUrl :: AuthRoute
|
||||||
complete = PluginR pid []
|
forwardUrl = PluginR pid []
|
||||||
|
|
||||||
|
complete = forwardUrl
|
||||||
|
|
||||||
-- | A settings type for various configuration options relevant to BrowserID.
|
-- | A settings type for various configuration options relevant to BrowserID.
|
||||||
--
|
--
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user