Complete fix for account database
This commit is contained in:
+6
-6
@@ -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',
|
||||
'',
|
||||
''
|
||||
);
|
||||
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user