Parcourir la source

Migrated everything to new auth page

Yoginth il y a 7 ans
Parent
commit
ad845a1459
2 fichiers modifiés avec 7 ajouts et 2 suppressions
  1. 4 1
      cmd/web.go
  2. 3 1
      public/robots.txt

+ 4 - 1
cmd/web.go

@@ -173,7 +173,7 @@ func runWeb(c *cli.Context) error {
 		Post(bindIgnErr(form.Install{}), routes.InstallPost)
 	m.Get("/^:type(issues|pulls)$", reqSignIn, user.Issues)
 
-	// ***** START: User *****
+	// ***** START: Auth *****
 	m.Group("", func() {
 		m.Group("/login", func() {
 			m.Combo("").Get(user.Login).
@@ -188,6 +188,9 @@ func runWeb(c *cli.Context) error {
 		m.Post("/reset_password", user.ResetPasswdPost)
 	}, reqSignOut)
 
+	// ***** END: Auth *****
+
+	// ***** START: User *****
 	m.Group("/user/settings", func() {
 		m.Get("", user.Settings)
 		m.Post("", bindIgnErr(form.UpdateProfile{}), user.SettingsPost)

+ 3 - 1
public/robots.txt

@@ -3,12 +3,14 @@
 User-agent: *
 Allow: /humans.txt
 Allow: /
+Allow: /login
+Allow: /join
 Allow: /*/*/src/master
 Disallow: /admin
+Disallow: /user
 Disallow: /*/*/forks
 Disallow: /*/*/stars
 Disallow: /*/*/pulls
-Disallow: /*/*/watchers
 Disallow: /*/*/archive
 Disallow: /*/*/settings
 Disallow: /*/*/raw/*