Exemple #1
0
        public async Task <IActionResult> GetPasswordResetToken(string username)
        {
            try
            {
                var token = await repo.GetPasswordResetToken(username);

                return(StatusCode(StatusCodes.Status200OK, new PasswordResetDTO()
                {
                    Code = token
                }));
            }
            catch (System.Exception ex)
            {
                return(StatusCode(StatusCodes.Status400BadRequest, ex.Message));
            }
        }