예제 #1
0
        public async Task SendForgotPasswordLinkAsync()
        {
            try
            {
                // Get the email address
                var email = await DialogHelper.GetValueAsync(null, ResourceHelper.GetString("ForgotPassword"), Email, ResourceHelper.GetString("ForgotPasswordPrompt"));

                if (email != null)
                {
                    // Log in and get access token
                    await KryptPadApi.SendForgotPasswordLinkAsync(email);

                    await DialogHelper.ShowMessageDialogAsync("If your email address is associated to your account, you should recieve an email with password reset instructions.");
                }
            }
            catch (WebException ex)
            {
                await DialogHelper.ShowMessageDialogAsync(ex.Message);
            }
            catch (Exception ex)
            {
                // Failed
                await DialogHelper.ShowGenericErrorDialogAsync(ex);
            }
        }