Different workings
This commit is contained in:
parent
9d384cd18d
commit
dc98178095
14 changed files with 57 additions and 22 deletions
|
|
@ -25,7 +25,7 @@ namespace PlanTempus.Components.Users.Create
|
|||
@AccessFailedCount, @LockoutEnabled, @IsActive)
|
||||
RETURNING id, created_at, email, is_active";
|
||||
|
||||
var data = await db.Connection.QuerySqlAsync<CreateUserResult>(sql, new
|
||||
await db.Connection.QuerySqlAsync(sql, new
|
||||
{
|
||||
command.Email,
|
||||
PasswordHash = secureTokenizer.TokenizeText(command.Password),
|
||||
|
|
@ -35,7 +35,8 @@ namespace PlanTempus.Components.Users.Create
|
|||
LockoutEnabled = false,
|
||||
command.IsActive,
|
||||
});
|
||||
|
||||
//lav en mapping mellem requestid og userid
|
||||
|
||||
return new CommandResponse(command.CorrelationId, command.GetType().Name, command.TransactionId);
|
||||
}
|
||||
catch (PostgresException ex) when (ex.SqlState == "23505")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue