mirror of
https://github.com/bitwarden/mobile
synced 2025-12-15 07:43:37 +00:00
Explain how to verify email for file Sends
This commit is contained in:
@@ -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");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user