This repository has been archived by the owner on May 5, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from southernwind/master
ワンタイムパスワードの対応と、ログイン方法変更への対応
- Loading branch information
Showing
5 changed files
with
119 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<Window x:Class="ARADAutoLauncher.OneTimePassWindow" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
Title="MainWindow" | ||
Width="392" | ||
Height="230" | ||
AllowsTransparency="True" | ||
WindowStyle="None" | ||
Background="Transparent" MouseLeftButtonDown="Window_MouseLeftButtonDown" > | ||
<Border BorderBrush="#000" Background="white" BorderThickness="1" Margin="10,10,10,10"> | ||
<Grid> | ||
<Button Content="×" Background="Transparent" HorizontalAlignment="Right" VerticalAlignment="Top" Click="ButtonExit_Click" BorderBrush="Transparent" Grid.Row="1" FontSize="16" Height="30" Width="30" Foreground="#000" IsTabStop="False"/> | ||
<Grid Margin="20,35,20,27"> | ||
<Label x:Name="label" Content="ワンタイムパスワードが要求されました。" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top"/> | ||
<TextBlock Margin="19,41,0,0" TextWrapping="Wrap" Text="OTP *" Foreground="#000" FontSize="20" HorizontalAlignment="Left" VerticalAlignment="Top"/> | ||
<TextBox x:Name="textBox_Otp" Width="162" Height="29" TextWrapping="NoWrap" FontSize="20" Margin="140,41,28,76" MaxLength="6" KeyDown="textBox_Otp_KeyDown"/> | ||
<Button Content="OK" Margin="24,83,0,0" Width="278" Background="{x:Null}" BorderBrush="#000" Foreground="#000" Click="Button_Click" FontSize="20" HorizontalAlignment="Left" VerticalAlignment="Top" Height="53"/> | ||
</Grid> | ||
</Grid> | ||
</Border> | ||
</Window> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
using System; | ||
using System.Windows; | ||
using System.Windows.Input; | ||
|
||
namespace ARADAutoLauncher { | ||
/// <summary> | ||
/// OneTimePassWindow.xaml の相互作用ロジック | ||
/// </summary> | ||
public partial class OneTimePassWindow :Window | ||
{ | ||
|
||
public string otp; | ||
public OneTimePassWindow() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
private void Button_Click( object sender, RoutedEventArgs e ) | ||
{ | ||
otp = textBox_Otp.Text; | ||
Close(); | ||
} | ||
private void ButtonExit_Click( object sender, RoutedEventArgs e ) | ||
{ | ||
Close(); | ||
} | ||
|
||
private void Window_MouseLeftButtonDown( object sender, MouseButtonEventArgs e ) | ||
{ | ||
this.DragMove(); | ||
} | ||
|
||
private void textBox_Otp_KeyDown( object sender, KeyEventArgs e ) | ||
{ | ||
if( e.Key == Key.Return ) | ||
{ | ||
otp = textBox_Otp.Text; | ||
Close(); | ||
} | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters