- Added forgot option
- added modify user
- moved login and register
This commit is contained in:
2019-01-29 19:59:12 +01:00
parent 583c67c61a
commit 746e5fe14b
17 changed files with 229 additions and 63 deletions

View File

@@ -133,6 +133,7 @@ namespace SeniorAssistant
db.CreateTableIfNotExists<Patient>();
db.CreateTableIfNotExists<Notification>();
db.CreateTableIfNotExists<Message>();
db.CreateTableIfNotExists<Forgot>();
}
}
@@ -175,8 +176,17 @@ namespace SeniorAssistant
db.InsertOrReplace(patient);
}
var forgot = new Forgot()
{
Question = "Quale animale ti piace di piu'?",
Answer = "Rayquaza"
};
foreach (var user in users)
{
forgot.Username = user.Username;
db.InsertOrReplace(forgot);
db.InsertOrReplace(user);
}
DateTime now = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day);
now = now.AddHours(DateTime.Now.Hour).AddMinutes(30);