Explain how to verify email for file Sends
This commit is contained in:
parent
faa6904ce3
commit
b72314bc93
|
@ -45,7 +45,6 @@ namespace Bit.App.Pages
|
|||
};
|
||||
private bool _disableHideEmail;
|
||||
private bool _sendOptionsPolicyInEffect;
|
||||
private bool _disableHideEmailControl;
|
||||
|
||||
public SendAddEditPageViewModel()
|
||||
{
|
||||
|
@ -344,7 +343,7 @@ namespace Bit.App.Pages
|
|||
}
|
||||
if (!_emailVerified)
|
||||
{
|
||||
await _platformUtilsService.ShowDialogAsync(AppResources.SendFileEmailVerificationRequired);
|
||||
verifyEmailPrompt();
|
||||
return false;
|
||||
}
|
||||
if (!EditMode)
|
||||
|
@ -475,7 +474,7 @@ namespace Bit.App.Pages
|
|||
}
|
||||
else if (!_emailVerified)
|
||||
{
|
||||
await _platformUtilsService.ShowDialogAsync(AppResources.SendFileEmailVerificationRequired);
|
||||
verifyEmailPrompt();
|
||||
}
|
||||
|
||||
if (IsAddFromShare && Device.RuntimePlatform == Device.Android)
|
||||
|
@ -609,5 +608,15 @@ namespace Bit.App.Pages
|
|||
DateTimeKind.Local
|
||||
);
|
||||
}
|
||||
|
||||
private async void verifyEmailPrompt()
|
||||
{
|
||||
var confirmed = await _platformUtilsService.ShowDialogAsync(AppResources.SendFileEmailVerificationRequired, null,
|
||||
AppResources.Yes, AppResources.Cancel);
|
||||
if (confirmed)
|
||||
{
|
||||
_platformUtilsService.LaunchUri("https://bitwarden.com/help/article/create-bitwarden-account/#verify-your-email");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1984,7 +1984,7 @@
|
|||
<comment>'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated.</comment>
|
||||
</data>
|
||||
<data name="SendFileEmailVerificationRequired" xml:space="preserve">
|
||||
<value>You must verify your email to use files with Send.</value>
|
||||
<value>You must verify your email to use files with Send. You can verify your email in the bitwarden.com web vault. Do you want to visit the website now?</value>
|
||||
<comment>'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated.</comment>
|
||||
</data>
|
||||
</root>
|
||||
|
|
Loading…
Reference in New Issue