1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-09-29 04:07:37 +02:00
bitwarden-mobile/src/App/Pages/Accounts/LoginPage.xaml

83 lines
3.5 KiB
Plaintext
Raw Normal View History

2019-04-19 15:42:55 +02:00
<?xml version="1.0" encoding="utf-8" ?>
2019-05-01 21:29:57 +02:00
<pages:BaseContentPage
2019-04-19 15:42:55 +02:00
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Bit.App.Pages.LoginPage"
xmlns:pages="clr-namespace:Bit.App.Pages"
2019-05-01 21:11:54 +02:00
xmlns:controls="clr-namespace:Bit.App.Controls"
2019-04-22 19:47:45 +02:00
xmlns:u="clr-namespace:Bit.App.Utilities"
2019-04-19 15:42:55 +02:00
x:DataType="pages:LoginPageViewModel"
Title="{Binding PageTitle}">
2019-05-01 21:11:54 +02:00
2019-04-19 15:42:55 +02:00
<ContentPage.BindingContext>
<pages:LoginPageViewModel />
</ContentPage.BindingContext>
2019-05-01 21:11:54 +02:00
<ContentPage.Resources>
<ResourceDictionary>
<u:InverseBoolConverter x:Key="inverseBool" />
</ResourceDictionary>
</ContentPage.Resources>
2019-04-19 15:42:55 +02:00
<ContentPage.ToolbarItems>
2019-06-12 03:31:51 +02:00
<ToolbarItem Text="{u:I18n Close}" Clicked="Close_Clicked" Order="Primary" Priority="-1" />
2019-05-01 21:11:54 +02:00
<ToolbarItem Text="{u:I18n LogIn}" Clicked="LogIn_Clicked" />
2019-04-19 15:42:55 +02:00
</ContentPage.ToolbarItems>
2019-05-01 21:11:54 +02:00
<ScrollView>
<StackLayout Spacing="20">
<StackLayout StyleClass="box">
<StackLayout StyleClass="box-row">
<Label
Text="{u:I18n EmailAddress}"
StyleClass="box-label" />
<Entry
2019-05-01 21:29:57 +02:00
x:Name="_email"
2019-05-01 21:11:54 +02:00
Text="{Binding Email}"
2019-05-01 21:53:56 +02:00
Keyboard="Email"
2019-05-01 21:11:54 +02:00
StyleClass="box-value" />
</StackLayout>
<Grid StyleClass="box-row">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Label
Text="{u:I18n MasterPassword}"
StyleClass="box-label"
Grid.Row="0"
Grid.Column="0" />
<controls:MonoEntry
2019-05-01 21:29:57 +02:00
x:Name="_masterPassword"
2019-05-01 21:11:54 +02:00
Text="{Binding MasterPassword}"
StyleClass="box-value"
IsSpellCheckEnabled="False"
IsTextPredictionEnabled="False"
2019-05-01 21:11:54 +02:00
IsPassword="{Binding ShowPassword, Converter={StaticResource inverseBool}}"
Grid.Row="1"
2019-05-31 18:02:40 +02:00
Grid.Column="0"
ReturnType="Go"
ReturnCommand="{Binding LogInCommand}" />
2019-05-01 21:11:54 +02:00
<controls:FaButton
StyleClass="box-row-button, box-row-button-platform"
Text="{Binding ShowPasswordIcon}"
Command="{Binding TogglePasswordCommand}"
Grid.Row="0"
Grid.Column="1"
2019-07-22 18:04:17 +02:00
Grid.RowSpan="2"
AutomationProperties.IsInAccessibleTree="True"
AutomationProperties.Name="{u:I18n ToggleVisibility}" />
2019-05-01 21:11:54 +02:00
</Grid>
</StackLayout>
[Auto Logout] Final review of feature (#932) * Initial commit of LockService name refactor (#831) * [Auto-Logout] Update Service layer logic (#835) * Initial commit of service logic update * Added default value for action * Updated ToggleTokensAsync conditional * Removed unused variables, updated action conditional * Initial commit: lockOption/lock refactor app layer (#840) * [Auto-Logout] Settings Refactor - Application Layer Part 2 (#844) * Initial commit of app layer part 2 * Updated biometrics position * Reverted resource name refactor * LockOptions refactor revert * Updated method casing :: Removed VaultTimeout prefix for timeouts * Fixed dupe string resource (#854) * Updated dependency to use VaultTimeoutService (#896) * [Auto Logout] Xamarin Forms in AutoFill flow (iOS) (#902) * fix typo in PINRequireMasterPasswordRestart (#900) * initial commit for xf usage in autofill * Fixed databinding for hint button * Updated Two Factor page launch - removed unused imports * First pass at broadcast/messenger implentation for autofill * setting theme in extension using theme manager * extension app resources * App resources from main app * fix ref to twoFactorPage * apply resources to page * load empty app for sytling in extension * move ios renderers to ios core * static ref to resources and GetResourceColor helper * fix method ref * move application.current.resources refs to helper * switch login page alerts to device action dialogs * run on main thread * showDialog with device action service * abstract action sheet to device action service * add support for yubikey * add yubikey iimages to extension * support close button action * add support to action extension * remove empty lines Co-authored-by: Jonas Kittner <54631600+theendlessriver13@users.noreply.github.com> Co-authored-by: Kyle Spearrin <kyle.spearrin@gmail.com> * [Auto Logout] Update lock option to be default value (#929) * Initial commit - make lock action default * Removed extra whitespace Co-authored-by: Jonas Kittner <54631600+theendlessriver13@users.noreply.github.com> Co-authored-by: Kyle Spearrin <kyle.spearrin@gmail.com> Co-authored-by: Kyle Spearrin <kspearrin@users.noreply.github.com>
2020-05-29 18:26:36 +02:00
<StackLayout Padding="10, 0" IsVisible="{Binding HideHintButton, Converter={StaticResource inverseBool}}">
<Button Text="{u:I18n GetPasswordHint}" Clicked="Hint_Clicked" />
2019-05-01 21:11:54 +02:00
</StackLayout>
</StackLayout>
</ScrollView>
2019-04-19 15:42:55 +02:00
2019-05-01 21:29:57 +02:00
</pages:BaseContentPage>