Skip to content

Commit

Permalink
Small changes and improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
nicehashdev committed Jun 29, 2015
1 parent 20d405e commit b7e46ba
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions src/NiceHashBot/FormSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ private void button1_Click(object sender, EventArgs e)
}

TwoFASecret = textBox2.Text;
if (TwoFASecret.Length != 0 && TwoFASecret.Length != 16)
{
MessageBox.Show("Two Factor secret key needs to be exactly 16 characters!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
textBox2.Focus();
return;
}

DialogResult = System.Windows.Forms.DialogResult.OK;
Close();
Expand Down
4 changes: 2 additions & 2 deletions src/NiceHashBot/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.1.3")]
[assembly: AssemblyFileVersion("1.0.1.3")]
[assembly: AssemblyVersion("1.0.1.4")]
[assembly: AssemblyFileVersion("1.0.1.4")]
2 changes: 1 addition & 1 deletion src/NiceHashBotLib/APIWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class APIWrapper
/// <summary>
/// Total number of algorithms.
/// </summary>
public readonly static int NUMBER_OF_ALGORITHMS = 13;
public readonly static int NUMBER_OF_ALGORITHMS = ALGORITHM_NAME.Length;

/// <summary>
/// Price decrease steps for all algorithms.
Expand Down

0 comments on commit b7e46ba

Please sign in to comment.