Explain how to verify email for file Sends

This commit is contained in:
Thomas Rittson 2021-05-11 15:24:11 +10:00
parent faa6904ce3
commit b72314bc93
2 changed files with 13 additions and 4 deletions

View File

@ -45,7 +45,6 @@ namespace Bit.App.Pages
}; };
private bool _disableHideEmail; private bool _disableHideEmail;
private bool _sendOptionsPolicyInEffect; private bool _sendOptionsPolicyInEffect;
private bool _disableHideEmailControl;
public SendAddEditPageViewModel() public SendAddEditPageViewModel()
{ {
@ -344,7 +343,7 @@ namespace Bit.App.Pages
} }
if (!_emailVerified) if (!_emailVerified)
{ {
await _platformUtilsService.ShowDialogAsync(AppResources.SendFileEmailVerificationRequired); verifyEmailPrompt();
return false; return false;
} }
if (!EditMode) if (!EditMode)
@ -475,7 +474,7 @@ namespace Bit.App.Pages
} }
else if (!_emailVerified) else if (!_emailVerified)
{ {
await _platformUtilsService.ShowDialogAsync(AppResources.SendFileEmailVerificationRequired); verifyEmailPrompt();
} }
if (IsAddFromShare && Device.RuntimePlatform == Device.Android) if (IsAddFromShare && Device.RuntimePlatform == Device.Android)
@ -609,5 +608,15 @@ namespace Bit.App.Pages
DateTimeKind.Local 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");
}
}
} }
} }

View File

@ -1984,7 +1984,7 @@
<comment>'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated.</comment> <comment>'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated.</comment>
</data> </data>
<data name="SendFileEmailVerificationRequired" xml:space="preserve"> <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> <comment>'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated.</comment>
</data> </data>
</root> </root>