Skip to content

Commit b7e46ba

Browse files
author
nicehashdev
committed
Small changes and improvements
1 parent 20d405e commit b7e46ba

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

src/NiceHashBot/FormSettings.cs

+6
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ private void button1_Click(object sender, EventArgs e)
4242
}
4343

4444
TwoFASecret = textBox2.Text;
45+
if (TwoFASecret.Length != 0 && TwoFASecret.Length != 16)
46+
{
47+
MessageBox.Show("Two Factor secret key needs to be exactly 16 characters!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
48+
textBox2.Focus();
49+
return;
50+
}
4551

4652
DialogResult = System.Windows.Forms.DialogResult.OK;
4753
Close();

src/NiceHashBot/Properties/AssemblyInfo.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.0.1.3")]
36-
[assembly: AssemblyFileVersion("1.0.1.3")]
35+
[assembly: AssemblyVersion("1.0.1.4")]
36+
[assembly: AssemblyFileVersion("1.0.1.4")]

src/NiceHashBotLib/APIWrapper.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class APIWrapper
3333
/// <summary>
3434
/// Total number of algorithms.
3535
/// </summary>
36-
public readonly static int NUMBER_OF_ALGORITHMS = 13;
36+
public readonly static int NUMBER_OF_ALGORITHMS = ALGORITHM_NAME.Length;
3737

3838
/// <summary>
3939
/// Price decrease steps for all algorithms.

0 commit comments

Comments
 (0)