Skip to content

Commit beecf24

Browse files
committed
Upstream
1 parent b2229b6 commit beecf24

8 files changed

Lines changed: 9 additions & 18 deletions

File tree

Lain/CryLain.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
using System;
2-
using System.Collections.Generic;
32
using System.IO;
4-
using System.Runtime.Serialization.Formatters.Binary;
53
using System.Security;
64
using System.Security.Cryptography;
75
using System.Text;

Lain/Forms/DuplicatesForm.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.ComponentModel;
4-
using System.Data;
5-
using System.Drawing;
63
using System.Linq;
7-
using System.Text;
8-
using System.Threading.Tasks;
94
using System.Windows.Forms;
105

116
namespace Lain
@@ -25,7 +20,7 @@ public DuplicatesForm(List<LainAccount> duplicates)
2520
{
2621
if (i >= 2)
2722
{
28-
if (duplicates[i-1].Password() != duplicates[i].Password())
23+
if (duplicates[i - 1].Password() != duplicates[i].Password())
2924
{
3025
txtReport.AppendText(Environment.NewLine);
3126
}

Lain/Forms/MainForm.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ private void Search()
216216
_temp = string.Empty;
217217
_temp2 = string.Empty;
218218
}
219-
219+
220220
internal void FixColors()
221221
{
222222
AccountView.DefaultCellStyle.SelectionBackColor = Color.FromArgb(65, 65, 65);
@@ -515,7 +515,7 @@ internal void SetFontSize()
515515

516516
private void MainForm_Load(object sender, EventArgs e)
517517
{
518-
518+
519519
}
520520

521521
private void btnAdd_Click(object sender, EventArgs e)

Lain/Forms/OptionsForm.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public OptionsForm(MainForm main)
1818

1919
LoadSettings();
2020
Options.ApplyTheme(this);
21-
21+
2222
txtTimer.ShortcutsEnabled = false;
2323
}
2424

@@ -93,7 +93,7 @@ private void LoadSettings()
9393

9494
private void OptionsForm_Load(object sender, EventArgs e)
9595
{
96-
96+
9797
}
9898

9999
private void btnOk_Click(object sender, EventArgs e)

Lain/Forms/WizardForm.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System;
22
using System.Drawing;
33
using System.IO;
4-
using System.IO.Compression;
54
using System.Windows.Forms;
65

76
namespace Lain

Lain/Options.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ internal static class Options
2525
{
2626
internal static Color ForegroundColor = Color.FromArgb(153, 102, 204);
2727
internal static Color ForegroundAccentColor = Color.FromArgb(134, 89, 179);
28-
internal static Color BackgroundColor = Color.FromArgb(20,20,20);
28+
internal static Color BackgroundColor = Color.FromArgb(20, 20, 20);
2929

3030
internal readonly static string ThemeFlag = "themeable";
3131
readonly static string _settingsFile = Path.Combine(Required.DataFolder, "Lain.json");

Lain/Program.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,7 @@ internal static void RestartLain()
208208

209209
private static bool SanitizeSalt(string salt)
210210
{
211-
return true;
212-
//return !string.IsNullOrEmpty(salt) && salt.Length >= 32;
211+
return !string.IsNullOrEmpty(salt) && salt.Length >= 32;
213212
}
214213

215214
internal static void SetMainForm(Form form)

SALTS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#### Salt should be at least 32 characters long. ####
66

77
#### Using command-line: ####
8-
- Run Lain like this: Lain.exe /salt=CUSTOMSALT
8+
- Lain.exe /salt=CUSTOMSALT
99

1010
#### Using a file: ####
11-
- Place a Lain.salt file in Data folder with your desired salt in it and run the app normally.
11+
- Place a Lain.salt file in Data folder with your desired salt in it and run the app normally.

0 commit comments

Comments
 (0)