Created login and error handling to get auth token. Refreshing not handled.

This commit is contained in:
Patrick Fic
2020-01-16 18:43:50 -08:00
parent 0daf17a3f0
commit cfec5327dd
17 changed files with 625 additions and 47 deletions

View File

@@ -60,6 +60,42 @@ namespace BodyshopUploader.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to An issue has occured. Please check the log files..
/// </summary>
public static string Error_Generic {
get {
return ResourceManager.GetString("Error_Generic", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The username and password combination is not valid. Please try again. .
/// </summary>
public static string Error_Login {
get {
return ResourceManager.GetString("Error_Login", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Too many login attempts..
/// </summary>
public static string Error_Login_Attempts {
get {
return ResourceManager.GetString("Error_Login_Attempts", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to An unknown error occured while logging in. Please check the log files..
/// </summary>
public static string Error_Login_Unknown {
get {
return ResourceManager.GetString("Error_Login_Unknown", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Exit.
/// </summary>

View File

@@ -117,6 +117,18 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="Error_Generic" xml:space="preserve">
<value>An issue has occured. Please check the log files.</value>
</data>
<data name="Error_Login" xml:space="preserve">
<value>The username and password combination is not valid. Please try again. </value>
</data>
<data name="Error_Login_Attempts" xml:space="preserve">
<value>Too many login attempts.</value>
</data>
<data name="Error_Login_Unknown" xml:space="preserve">
<value>An unknown error occured while logging in. Please check the log files.</value>
</data>
<data name="Exit" xml:space="preserve">
<value>Exit</value>
</data>

View File

@@ -8,23 +8,42 @@
// </auto-generated>
//------------------------------------------------------------------------------
namespace BodyshopUploader.Properties
{
namespace BodyshopUploader.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.4.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
public static Settings Default {
get {
return defaultInstance;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
public string Username {
get {
return ((string)(this["Username"]));
}
set {
this["Username"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Security.SecureString Password {
get {
return ((global::System.Security.SecureString)(this["Password"]));
}
set {
this["Password"] = value;
}
}
}
}

View File

@@ -1,7 +1,12 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="uri:settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="BodyshopUploader.Properties" GeneratedClassName="Settings">
<Profiles />
<Settings>
<Setting Name="Username" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="Password" Type="System.Security.SecureString" Scope="User">
<Value Profile="(Default)" />
</Setting>
</Settings>
</SettingsFile>