diff options
author | Tamal Saha <tamal@appscode.com> | 2019-08-23 09:40:30 -0700 |
---|---|---|
committer | techknowlogick <techknowlogick@gitea.io> | 2019-08-23 12:40:29 -0400 |
commit | 171b3598778a1ecd0a921c71ed6755bfef68f7f0 (patch) | |
tree | 02857629ef9e8e26ee0ee559153f803f77b588b7 /modules/auth | |
parent | ca6fb004ac50fc924861112403895d637c6a2d1d (diff) | |
download | gitea-171b3598778a1ecd0a921c71ed6755bfef68f7f0.tar.gz gitea-171b3598778a1ecd0a921c71ed6755bfef68f7f0.zip |
Use gitea forked macaron (#7933)
Signed-off-by: Tamal Saha <tamal@appscode.com>
Diffstat (limited to 'modules/auth')
-rw-r--r-- | modules/auth/admin.go | 5 | ||||
-rw-r--r-- | modules/auth/auth.go | 12 | ||||
-rw-r--r-- | modules/auth/auth_form.go | 4 | ||||
-rw-r--r-- | modules/auth/openid/openid.go | 3 | ||||
-rw-r--r-- | modules/auth/org.go | 4 | ||||
-rw-r--r-- | modules/auth/repo_branch_form.go | 4 | ||||
-rw-r--r-- | modules/auth/repo_form.go | 6 | ||||
-rw-r--r-- | modules/auth/repo_form_test.go | 1 | ||||
-rw-r--r-- | modules/auth/user_form.go | 4 | ||||
-rw-r--r-- | modules/auth/user_form_auth_openid.go | 4 |
10 files changed, 24 insertions, 23 deletions
diff --git a/modules/auth/admin.go b/modules/auth/admin.go index 8f8dd8f22a..6e225891dd 100644 --- a/modules/auth/admin.go +++ b/modules/auth/admin.go @@ -5,9 +5,8 @@ package auth import ( - "gopkg.in/macaron.v1" - - "github.com/go-macaron/binding" + "gitea.com/macaron/binding" + "gitea.com/macaron/macaron" ) // AdminCreateUserForm form for admin to create user diff --git a/modules/auth/auth.go b/modules/auth/auth.go index 1013628073..74a596e8ef 100644 --- a/modules/auth/auth.go +++ b/modules/auth/auth.go @@ -10,18 +10,18 @@ import ( "strings" "time" - "github.com/Unknwon/com" - "github.com/go-macaron/binding" - "github.com/go-macaron/session" - gouuid "github.com/satori/go.uuid" - "gopkg.in/macaron.v1" - "code.gitea.io/gitea/models" "code.gitea.io/gitea/modules/base" "code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/modules/setting" "code.gitea.io/gitea/modules/timeutil" "code.gitea.io/gitea/modules/validation" + + "gitea.com/macaron/binding" + "gitea.com/macaron/macaron" + "gitea.com/macaron/session" + gouuid "github.com/satori/go.uuid" + "github.com/unknwon/com" ) // IsAPIPath if URL is an api path diff --git a/modules/auth/auth_form.go b/modules/auth/auth_form.go index e44ef58f8e..358472a385 100644 --- a/modules/auth/auth_form.go +++ b/modules/auth/auth_form.go @@ -5,8 +5,8 @@ package auth import ( - "github.com/go-macaron/binding" - "gopkg.in/macaron.v1" + "gitea.com/macaron/binding" + "gitea.com/macaron/macaron" ) // AuthenticationForm form for authentication diff --git a/modules/auth/openid/openid.go b/modules/auth/openid/openid.go index ffe0aba2b6..40f38c2d2e 100644 --- a/modules/auth/openid/openid.go +++ b/modules/auth/openid/openid.go @@ -5,8 +5,9 @@ package openid import ( - "github.com/yohcop/openid-go" "time" + + "github.com/yohcop/openid-go" ) // For the demo, we use in-memory infinite storage nonce and discovery diff --git a/modules/auth/org.go b/modules/auth/org.go index d51ab75d3a..367468e587 100644 --- a/modules/auth/org.go +++ b/modules/auth/org.go @@ -9,8 +9,8 @@ import ( "code.gitea.io/gitea/models" "code.gitea.io/gitea/modules/structs" - "github.com/go-macaron/binding" - "gopkg.in/macaron.v1" + "gitea.com/macaron/binding" + "gitea.com/macaron/macaron" ) // ________ .__ __ .__ diff --git a/modules/auth/repo_branch_form.go b/modules/auth/repo_branch_form.go index 57e63741aa..a4baabe354 100644 --- a/modules/auth/repo_branch_form.go +++ b/modules/auth/repo_branch_form.go @@ -5,8 +5,8 @@ package auth import ( - "github.com/go-macaron/binding" - macaron "gopkg.in/macaron.v1" + "gitea.com/macaron/binding" + "gitea.com/macaron/macaron" ) // NewBranchForm form for creating a new branch diff --git a/modules/auth/repo_form.go b/modules/auth/repo_form.go index cdac210dde..bb9be70e87 100644 --- a/modules/auth/repo_form.go +++ b/modules/auth/repo_form.go @@ -13,9 +13,9 @@ import ( "code.gitea.io/gitea/modules/setting" "code.gitea.io/gitea/routers/utils" - "github.com/Unknwon/com" - "github.com/go-macaron/binding" - macaron "gopkg.in/macaron.v1" + "gitea.com/macaron/binding" + "gitea.com/macaron/macaron" + "github.com/unknwon/com" ) // _______________________________________ _________.______________________ _______________.___. diff --git a/modules/auth/repo_form_test.go b/modules/auth/repo_form_test.go index a3369b006e..6bad5d50ba 100644 --- a/modules/auth/repo_form_test.go +++ b/modules/auth/repo_form_test.go @@ -8,6 +8,7 @@ import ( "testing" "code.gitea.io/gitea/modules/setting" + "github.com/stretchr/testify/assert" ) diff --git a/modules/auth/user_form.go b/modules/auth/user_form.go index c117d038be..8ceb961d24 100644 --- a/modules/auth/user_form.go +++ b/modules/auth/user_form.go @@ -11,8 +11,8 @@ import ( "code.gitea.io/gitea/modules/setting" - "github.com/go-macaron/binding" - macaron "gopkg.in/macaron.v1" + "gitea.com/macaron/binding" + "gitea.com/macaron/macaron" ) // InstallForm form for installation page diff --git a/modules/auth/user_form_auth_openid.go b/modules/auth/user_form_auth_openid.go index 275850d09a..b355825483 100644 --- a/modules/auth/user_form_auth_openid.go +++ b/modules/auth/user_form_auth_openid.go @@ -5,8 +5,8 @@ package auth import ( - "github.com/go-macaron/binding" - "gopkg.in/macaron.v1" + "gitea.com/macaron/binding" + "gitea.com/macaron/macaron" ) // SignInOpenIDForm form for signing in with OpenID |