Bugfix master (#87)
* PBI4 End Updates PBI4 End Updates * pbi4end fabrikam updates * v4 update v4 update * updates and cleaning * fix encoding issue fix encoding issue
This commit is contained in:
Родитель
5ff8be2725
Коммит
4523fa9c49
|
@ -54,10 +54,10 @@ namespace ContosoHelpdeskChatBot.Dialogs
|
||||||
{
|
{
|
||||||
string temppwd = "TempPwd" + new Random().Next(0, 5000);
|
string temppwd = "TempPwd" + new Random().Next(0, 5000);
|
||||||
using (var db = new ContosoHelpdeskContext())
|
using (var db = new ContosoHelpdeskContext())
|
||||||
{
|
{
|
||||||
var reset = db.ResetPasswords.Where(r => r.EmailAddress == email).First();
|
var reset = db.ResetPasswords.Where(r => r.EmailAddress == email).First();
|
||||||
reset.TempPassword = temppwd;
|
reset.TempPassword = temppwd;
|
||||||
db.SaveChanges();
|
db.SaveChanges();
|
||||||
}
|
}
|
||||||
await stepContext.Context.SendActivityAsync($"Your temp password is {temppwd}");
|
await stepContext.Context.SendActivityAsync($"Your temp password is {temppwd}");
|
||||||
return await stepContext.EndDialogAsync();
|
return await stepContext.EndDialogAsync();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче