Merge pull request #978 from wiz/patch-1

Provide a hint on how to use `loginHandler`.
This commit is contained in:
Michael Snoyman 2015-04-24 12:15:12 +03:00
commit 0b6035ffda

View File

@ -146,6 +146,10 @@ class (Yesod master, PathPiece (AuthId master), RenderMessage master FormMessage
authPlugins :: master -> [AuthPlugin master]
-- | What to show on the login page.
--
-- Default handler concatenates plugin widgets and wraps the result
-- in 'authLayout'. Override if you need fancy widget containers
-- or entirely custom page.
loginHandler :: AuthHandler master Html
loginHandler = do
tp <- getRouteToParent