diff --git a/openid2.hs b/openid2.hs index 4f160b80..70f96e00 100644 --- a/openid2.hs +++ b/openid2.hs @@ -1,6 +1,6 @@ -{-# LANGUAGE TypeFamilies, QuasiQuotes #-} +{-# LANGUAGE TypeFamilies, QuasiQuotes, TemplateHaskell, MultiParamTypeClasses, OverloadedStrings #-} import Yesod -import Web.Authenticate.OpenId2 +import Web.Authenticate.OpenId import Data.Object import Data.Maybe (fromMaybe) import Network.HTTP.Enumerator @@ -14,23 +14,23 @@ mkYesod "OID" [$parseRoutes| instance Yesod OID where approot _ = "http://localhost:3000" -getRootR = defaultLayout [$hamlet| -%form!action=@ForwardR@ - OpenId: - %input!type=text!name=openid_identifier!value="http://" - %input!type=submit +getRootR = defaultLayout [$hamlet|\ +