Complete fix for account database
This commit is contained in:
+6
-6
@@ -205,14 +205,14 @@ INSERT INTO Account (
|
|||||||
DataServer
|
DataServer
|
||||||
) VALUES (
|
) VALUES (
|
||||||
1,
|
1,
|
||||||
`admin`,
|
'admin',
|
||||||
`admin@mistox.com`,
|
'admin@mistox.com',
|
||||||
1,
|
1,
|
||||||
`$2a$11$0UeWLLqTXe3FG161QVuI0OQJ9rulspUpMG581DI6KSzDXBbFKd00S`,
|
'$2a$11$0UeWLLqTXe3FG161QVuI0OQJ9rulspUpMG581DI6KSzDXBbFKd00S',
|
||||||
0,
|
0,
|
||||||
5,
|
5,
|
||||||
0,
|
0,
|
||||||
`Admin`,
|
'Admin',
|
||||||
``,
|
'',
|
||||||
``
|
''
|
||||||
);
|
);
|
||||||
@@ -5,7 +5,6 @@ using System.Security.Claims;
|
|||||||
using BoredCareers.Services;
|
using BoredCareers.Services;
|
||||||
using BoredCareers.Services.DatabaseService;
|
using BoredCareers.Services.DatabaseService;
|
||||||
using BoredCareers.Entities;
|
using BoredCareers.Entities;
|
||||||
using Microsoft.AspNetCore.Http.HttpResults;
|
|
||||||
using System.Web.Http;
|
using System.Web.Http;
|
||||||
|
|
||||||
namespace BoredCareers.Controllers {
|
namespace BoredCareers.Controllers {
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ namespace BoredCareers.Services.DatabaseService {
|
|||||||
INSERT INTO Account
|
INSERT INTO Account
|
||||||
(ID,UserName,Email,EmailVerified,PasswordHash,FailedPasswordLock,PasswordAttempts,CurrentPasswordAttempts,Role,EmailToken,DataServer)
|
(ID,UserName,Email,EmailVerified,PasswordHash,FailedPasswordLock,PasswordAttempts,CurrentPasswordAttempts,Role,EmailToken,DataServer)
|
||||||
VALUES
|
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
|
ON DUPLICATE KEY UPDATE
|
||||||
UserName = @UserName,
|
UserName = @UserName,
|
||||||
Email = @Email,
|
Email = @Email,
|
||||||
@@ -120,7 +120,7 @@ namespace BoredCareers.Services.DatabaseService {
|
|||||||
PasswordAttempts = @PasswordAttempts,
|
PasswordAttempts = @PasswordAttempts,
|
||||||
CurrentPasswordAttempts = @CurrentPasswordAttempts,
|
CurrentPasswordAttempts = @CurrentPasswordAttempts,
|
||||||
Role = @Role,
|
Role = @Role,
|
||||||
EmailToken = @EmailToken;
|
EmailToken = @EmailToken,
|
||||||
DataServer = @DataServer;
|
DataServer = @DataServer;
|
||||||
";
|
";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user