This commit is contained in:
mmrbnjd
2024-06-24 11:48:53 +03:30
parent 4412e920fd
commit a1d265bf7f
10 changed files with 52 additions and 34 deletions

View File

@@ -69,15 +69,15 @@ namespace Back.Controllers
var UserID = HttpContext.User.Claims.First(c => c.Type == "UserID").Value;
var ID = await _servValidatinMsg.GenerateCode(new VerificationCode
var modelvc = await _servValidatinMsg.GenerateCode(new VerificationCode
{
prm = UserID,
val = newUsername,
Type = "ChangeUserName"
});
_servSendMsg.Authentication(newUsername, ID.ToString());
return Ok(ID);
_servSendMsg.toContinue(modelvc.Code.ToString(),newUsername, "تغییر نام کاربری");
return Ok(modelvc.ID);
// return Ok(await _servUser.ChangeUserName(newUsername, Convert.ToInt32(UserID)));
}