Пример #1
0
        /// <summary>
        /// Requests forgotten account information when a user cannot rememeber their authentication details.
        /// </summary>
        /// <param name="vm">Account forgot view model instance contain partial account details.</param>
        /// <returns>Response information indicating whether the call was successful or not.</returns>
        public async Task <ForgotPasswordResponse> ForgotPasswordAsync(AccountForgotViewModel vm, CancellationToken ct)
        {
            var response = new ForgotPasswordResponse()
            {
                IsValid = true, Message = "Your password has been sent to your e-mail!"
            };
            await Task.Delay(2000, ct);

            return(response);
        }
Пример #2
0
 internal Task ForgotPasswordAsync(AccountForgotViewModel accountForgotViewModel, object none)
 {
     throw new NotImplementedException();
 }