diff --git a/database/mistox.sql b/database/mistox.sql index a16ece7..995ee57 100755 --- a/database/mistox.sql +++ b/database/mistox.sql @@ -205,14 +205,14 @@ INSERT INTO Account ( DataServer ) VALUES ( 1, - `admin`, - `admin@mistox.com`, + 'admin', + 'admin@mistox.com', 1, - `$2a$11$0UeWLLqTXe3FG161QVuI0OQJ9rulspUpMG581DI6KSzDXBbFKd00S`, + '$2a$11$0UeWLLqTXe3FG161QVuI0OQJ9rulspUpMG581DI6KSzDXBbFKd00S', 0, 5, 0, - `Admin`, - ``, - `` + 'Admin', + '', + '' ); \ No newline at end of file diff --git a/src/Server/Controllers/AuthenticationController.cs b/src/Server/Controllers/AuthenticationController.cs index 4a532da..463ab62 100755 --- a/src/Server/Controllers/AuthenticationController.cs +++ b/src/Server/Controllers/AuthenticationController.cs @@ -5,7 +5,6 @@ using System.Security.Claims; using BoredCareers.Services; using BoredCareers.Services.DatabaseService; using BoredCareers.Entities; -using Microsoft.AspNetCore.Http.HttpResults; using System.Web.Http; namespace BoredCareers.Controllers { diff --git a/src/Server/Services/DatabaseService/Account.cs b/src/Server/Services/DatabaseService/Account.cs index ae527da..09d5cf8 100755 --- a/src/Server/Services/DatabaseService/Account.cs +++ b/src/Server/Services/DatabaseService/Account.cs @@ -110,7 +110,7 @@ namespace BoredCareers.Services.DatabaseService { INSERT INTO Account (ID,UserName,Email,EmailVerified,PasswordHash,FailedPasswordLock,PasswordAttempts,CurrentPasswordAttempts,Role,EmailToken,DataServer) VALUES - (@ID,@UserName,@Email,@EmailVerified,@PasswordHash,@FailedPasswordLock,@PasswordAttempts,@CurrentPasswordAttempts,@Role,@EmailToken,@DataServer); + (@ID,@UserName,@Email,@EmailVerified,@PasswordHash,@FailedPasswordLock,@PasswordAttempts,@CurrentPasswordAttempts,@Role,@EmailToken,@DataServer) ON DUPLICATE KEY UPDATE UserName = @UserName, Email = @Email, @@ -120,7 +120,7 @@ namespace BoredCareers.Services.DatabaseService { PasswordAttempts = @PasswordAttempts, CurrentPasswordAttempts = @CurrentPasswordAttempts, Role = @Role, - EmailToken = @EmailToken; + EmailToken = @EmailToken, DataServer = @DataServer; ";