révision
e11577d43d
3 fichiers modifiés avec 5 ajouts et 6 suppressions
|
@ -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) {
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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>
|
||||
|
|
Référencer dans un nouveau ticket