mirror of
https://github.com/bitwarden/mobile
synced 2025-12-05 23:53:33 +00:00
* [SG-886] MasterPassword Strength Indicator (#2238) * [SG-886] Add password strength indicator control * [SG-570] Add weak password dialog check * [SG-886] rename enum password strength * [SG-886] Change control scale * [SG-886] Move calculate user inputs to IPasswordGenerationService, refactor. * [SG-886] Move formatted string to xaml. Move minimum chars to constant * [SG-886] String to enum converter * [SG-886] PR fixes. Code refactor control * [SG-886] Update UI on OS theme change. * [SG-886] Move colors to view * [SG-886] Fixed password strength validation * [SG-564][SG-565] Check Exposed Password (#2239) * [SG-886] Add password strength indicator control * [SG-570] Add weak password dialog check * [SG-886] rename enum password strength * [SG-564] [SG-565] Add check for exposed password and show dialog * code format * [SG-886] Change control scale * [SG-886] Move calculate user inputs to IPasswordGenerationService, refactor. * [SG-886] Move formatted string to xaml. Move minimum chars to constant * [SG-886] String to enum converter * [SG-886] Remove import * [SG-886] Update UI on OS theme change. * [SG-886] Move colors to view * [SG-886] Fixed password strength validation
29 lines
947 B
XML
29 lines
947 B
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<StackLayout
|
|
xmlns="http://xamarin.com/schemas/2014/forms"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
xmlns:controls="clr-namespace:Bit.App.Controls"
|
|
xmlns:u="clr-namespace:Bit.App.Utilities"
|
|
x:DataType="controls:PasswordStrengthViewModel"
|
|
x:Class="Bit.App.Controls.PasswordStrengthProgressBar"
|
|
StyleClass="box">
|
|
|
|
<StackLayout.Resources>
|
|
<ResourceDictionary>
|
|
<u:LocalizableEnumConverter x:Key="localizableEnum" />
|
|
</ResourceDictionary>
|
|
</StackLayout.Resources>
|
|
|
|
<ProgressBar
|
|
x:Name="_progressBar"
|
|
u:ProgressBarExtensions.AnimatedProgress="{Binding PasswordStrength}"
|
|
ScaleY="2" />
|
|
|
|
<Label
|
|
x:Name="_progressLabel"
|
|
Text="{Binding PasswordStrengthLevel, Converter={StaticResource localizableEnum}, TargetNullValue=' ' }"
|
|
StyleClass="box-footer-label" />
|
|
|
|
</StackLayout>
|
|
|