module Handler.Pinentry where import Import import Handler.Common import qualified Data.Text as T (pack) getPinentryR :: UserId -> Handler Html getPinentryR uId = isUser uId HomeR >>= (\user -> do case userPin user of Just pin -> do (pinWidget, enctype) <- generateFormPost $ renderBootstrap3 BootstrapBasicForm $ pinentryForm defaultLayout $ do [whamlet|