signup: fix email sent logic for tempuser

Fixes #8656 and properly sets the email_sent and email_sent_on fields
for a tempuser (signup user).
This commit is contained in:
Daniel Lee
2017-06-30 20:21:08 +02:00
parent fb99ddf295
commit b8aa203707
6 changed files with 46 additions and 1 deletions
+2
View File
@@ -16,6 +16,8 @@ func InitTestDB(t *testing.T) {
//x, err := xorm.NewEngine(sqlutil.TestDB_Mysql.DriverName, sqlutil.TestDB_Mysql.ConnStr)
//x, err := xorm.NewEngine(sqlutil.TestDB_Postgres.DriverName, sqlutil.TestDB_Postgres.ConnStr)
// x.ShowSQL()
if err != nil {
t.Fatalf("Failed to init in memory sqllite3 db %v", err)
}