mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00:00 
			
		
		
		
	Working on register mail confirmation
This commit is contained in:
		| @@ -17,9 +17,9 @@ func SignInRequire(redirect bool) martini.Handler { | |||||||
| 			} | 			} | ||||||
| 			return | 			return | ||||||
| 		} else if !ctx.User.IsActive { | 		} else if !ctx.User.IsActive { | ||||||
| 			ctx.Data["Title"] = "Activate Your Account" | 			// ctx.Data["Title"] = "Activate Your Account" | ||||||
| 			ctx.Render.HTML(200, "user/active", ctx.Data) | 			// ctx.Render.HTML(200, "user/active", ctx.Data) | ||||||
| 			return | 			// return | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|   | |||||||
| @@ -2,7 +2,7 @@ | |||||||
| {{template "base/navbar" .}} | {{template "base/navbar" .}} | ||||||
| <div id="gogs-body" class="container"> | <div id="gogs-body" class="container"> | ||||||
|     <form action="/user/activate" method="post" class="form-horizontal gogs-card" id="gogs-login-card"> |     <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 .IsActivatePage}} | ||||||
|         {{if .ServiceNotEnabled}} |         {{if .ServiceNotEnabled}} | ||||||
|         <p>Sorry, Register Mail Confirmation has been disabled.</p> |         <p>Sorry, Register Mail Confirmation has been disabled.</p> | ||||||
| @@ -11,6 +11,7 @@ | |||||||
|         {{end}} |         {{end}} | ||||||
|         {{else}} |         {{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> | 		<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="form-group"> | ||||||
|             <div class="col-md-offset-4 col-md-6"> |             <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> |                 <button type="submit" class="btn btn-lg btn-primary">Click here to resend your active e-mail</button> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Unknown
					Unknown