Ejemplo n.º 1
0
        public async Task <IActionResult> RequestPassReset(string uuid, CancellationToken ct = default)
        {
            User user = await _userService.GetByIdAsync(uuid, ct);

            if (user == null)
            {
                return(BadRequest());
            }

            string token = await _authenticationService.AddResetHash(user, ct);

            _emailService.SendPassRestEmail(user, token);
            return(Ok());
        }