Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

Merge pull request #306 from sfan5/sorry

fixed my stuff
Cette révision appartient à :
keo 2017-05-10 23:40:50 +03:00 révisé par GitHub
révision e11577d43d
3 fichiers modifiés avec 5 ajouts et 6 suppressions

Voir le fichier

@ -14,8 +14,6 @@ import (
"github.com/ewhal/nyaa/util/languages"
"github.com/ewhal/nyaa/util/log"
"github.com/gorilla/mux"
"fmt"
)
func ViewHandler(w http.ResponseWriter, r *http.Request) {

Voir le fichier

@ -10,7 +10,7 @@ import (
"github.com/ewhal/nyaa/config"
"github.com/ewhal/nyaa/db"
"github.com/ewhal/nyaa/model"
//"github.com/ewhal/nyaa/util/email"
"github.com/ewhal/nyaa/util/email"
"github.com/ewhal/nyaa/util/timeHelper"
"github.com/gorilla/securecookie"
"github.com/nicksnyder/go-i18n/i18n"
@ -26,9 +26,10 @@ func SendEmailVerification(to string, token string, locale string) error {
}
content := T("link") + " : https://" + config.WebAddress + "/verify/email/" + token
content_html := T("verify_email_content") + "<br/>" + "<a href=\"https://" + config.WebAddress + "/verify/email/" + token + "\" target=\"_blank\">" + config.WebAddress + "/verify/email/" + token + "</a>"
//return email.SendEmailFromAdmin(to, T("verify_email_title"), content, content_html)
return email.SendEmailFromAdmin(to, T("verify_email_title"), content, content_html)
/* // debug code DO NOT LEAVE THIS ENABLED
fmt.Printf("sending email to %s\n----\n%s\n%s\n----\n", to, content, content_html)
return nil
return nil*/
}
// SendVerificationToUser sends an email verification token to user.

Voir le fichier

@ -44,7 +44,7 @@
<p>{{.Hash}}</p>
<hr>
<h4>{{T "date"}}</h4>
<p>{{.Date}}</p>
<p class="date-full">{{.Date}}</p>
<hr>
<h4>{{T "size"}}</h4>
<p>{{.Filesize}}</p>