mirror of
https://code.sup39.dev/repos/Wqawg
synced 2024-12-29 00:04:52 +09:00
Replace unnecessary requireAuth with requireAuthId
This commit is contained in:
parent
d6967f52d9
commit
dd27f9d5b9
1 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ import Formatting (sformat, stext, (%))
|
|||
import System.Directory
|
||||
import System.Hourglass (dateCurrent)
|
||||
import Text.Blaze.Html (Html)
|
||||
import Yesod.Auth (requireAuth)
|
||||
import Yesod.Auth (requireAuthId)
|
||||
import Yesod.Core (defaultLayout, setMessage)
|
||||
import Yesod.Core.Handler (lookupPostParam, redirect, notFound)
|
||||
import Yesod.Form.Functions (runFormPost)
|
||||
|
@ -125,7 +125,7 @@ postReposR user = do
|
|||
case nrpVcs nrp of
|
||||
VCSDarcs -> D.createRepo parent repoName
|
||||
VCSGit -> G.createRepo parent repoName
|
||||
Entity pid person <- requireAuth
|
||||
pid <- requireAuthId
|
||||
runDB $ do
|
||||
let repo = Repo
|
||||
{ repoIdent = nrpIdent nrp
|
||||
|
|
Loading…
Reference in a new issue