Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

Fix text on profile edit page

Cette révision appartient à :
sfan5 2017-05-10 15:49:46 +02:00
Parent 18b8082adf
révision eddeed572f
2 fichiers modifiés avec 1 ajouts et 2 suppressions

Voir le fichier

@ -169,7 +169,6 @@ func UserProfileFormHandler(w http.ResponseWriter, r *http.Request) {
// Post Registration controller, we do some check on the form here, the rest on user service // Post Registration controller, we do some check on the form here, the rest on user service
func UserRegisterPostHandler(w http.ResponseWriter, r *http.Request) { func UserRegisterPostHandler(w http.ResponseWriter, r *http.Request) {
// Check same Password
b := form.RegistrationForm{} b := form.RegistrationForm{}
err := form.NewErrors() err := form.NewErrors()
if !captcha.Authenticate(captcha.Extract(r)) { if !captcha.Authenticate(captcha.Extract(r)) {

Voir le fichier

@ -10,7 +10,7 @@
<form class="form-horizontal" role="form" method="POST"> <form class="form-horizontal" role="form" method="POST">
<div class="form-group"> <div class="form-group">
<label class="col-lg-3 control-label">{{ T "email" }}:</label> <label class="col-lg-3 control-label">{{ T "email_address" }}:</label>
<div class="col-lg-8"> <div class="col-lg-8">
<input class="form-control" type="text" name="email" id="email" value="{{.Email}}"> <input class="form-control" type="text" name="email" id="email" value="{{.Email}}">
{{ range (index $.FormErrors "email")}} {{ range (index $.FormErrors "email")}}