]> source.dussan.org Git - gitea.git/commitdiff
Working on register mail confirmation
authorUnknown <joe2010xtmf@163.com>
Wed, 19 Mar 2014 13:29:58 +0000 (09:29 -0400)
committerUnknown <joe2010xtmf@163.com>
Wed, 19 Mar 2014 13:29:58 +0000 (09:29 -0400)
modules/middleware/auth.go
templates/user/active.tmpl

index 33321d6e413ffde6699e9dde99464f5b1977d9ef..84bbc7f45f3dc1f93c90c9420be52f1cc74f3e1b 100644 (file)
@@ -17,9 +17,9 @@ func SignInRequire(redirect bool) martini.Handler {
                        }
                        return
                } else if !ctx.User.IsActive {
-                       ctx.Data["Title"] = "Activate Your Account"
-                       ctx.Render.HTML(200, "user/active", ctx.Data)
-                       return
+                       // ctx.Data["Title"] = "Activate Your Account"
+                       // ctx.Render.HTML(200, "user/active", ctx.Data)
+                       // return
                }
        }
 }
index 758516d779f865e6d782907f4b1916b4a81408aa..319db6cfa52a0ce015d36e1ea9e9f0829d31aa18 100644 (file)
@@ -2,7 +2,7 @@
 {{template "base/navbar" .}}
 <div id="gogs-body" class="container">
     <form action="/user/activate" method="post" class="form-horizontal gogs-card" id="gogs-login-card">
-        <h3>Active Your Account</h3>
+        <h3>Activate Your Account</h3>
         {{if .IsActivatePage}}
         {{if .ServiceNotEnabled}}
         <p>Sorry, Register Mail Confirmation has been disabled.</p>
@@ -11,6 +11,7 @@
         {{end}}
         {{else}}
                <p>Hi, {{.SignedUser.Name}}, you have an unconfirmed email address(<b>{{.SignedUser.Email}}</b>). If you haven't received a confirmation e-mail or need to resend a new one, please click botton below.</p>
+               <hr/>
         <div class="form-group">
             <div class="col-md-offset-4 col-md-6">
                 <button type="submit" class="btn btn-lg btn-primary">Click here to resend your active e-mail</button>