Added getAuth function
This commit is contained in:
parent
f1fc97eda0
commit
746754d510
@ -29,6 +29,7 @@ module Yesod.Helpers.Auth
|
|||||||
, siteAuth
|
, siteAuth
|
||||||
, LoginType (..)
|
, LoginType (..)
|
||||||
, YesodAuth (..)
|
, YesodAuth (..)
|
||||||
|
, getAuth
|
||||||
) where
|
) where
|
||||||
|
|
||||||
import Web.Encodings
|
import Web.Encodings
|
||||||
@ -46,6 +47,9 @@ import Control.Exception (Exception)
|
|||||||
|
|
||||||
-- FIXME check referer header to determine destination
|
-- FIXME check referer header to determine destination
|
||||||
|
|
||||||
|
getAuth :: a -> Auth
|
||||||
|
getAuth = const Auth
|
||||||
|
|
||||||
data LoginType = OpenId | Rpxnow
|
data LoginType = OpenId | Rpxnow
|
||||||
|
|
||||||
class Yesod master => YesodAuth master where
|
class Yesod master => YesodAuth master where
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user