In my application i want just user login without registration,to disable registration i was following this article.
To add new user into database i use sql:
INSERT INTO AspNetUsers
(
[UserName],
[Email],
[EmailConfirmed],
[PasswordHash],
[AccessFailedCount],
[Id],
[PhoneNumberConfirmed],
[TwoFactorEnabled],
[LockoutEnabled]
)VALUES
(
'Uladz',
'test@gmailcom',
'true',
'adm1nPassWorD*_',
'3',
'1',
'false',
'false',
'true'
)
but i have problem with [PasswordHash] insert it as regular string makes no sense it has to be encrypted by identity.
Could you please tell me how can i get it or i have to use another way to do it ?