Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- just ran delete from core.person where personid = 55010
- then ran:
- Set IDENTITY_INSERT core.Person On
- Insert Into [core].[Person]
- (
- [PersonId]
- ,[RoleId]
- ,[GenderId]
- ,[AddressId]
- ,[FirstName]
- ,[MiddleName]
- ,[LastName]
- ,[Handle]
- ,[Password]
- ,[Title]
- ,[Overview]
- ,[BirthDate]
- ,[Image]
- ,[ForcePasswordChange]
- ,[EmployeeHireDate]
- ,[EmployeeFireDate]
- ,[IsInternal]
- ,[IsActive]
- ,[IsLoginConfirmed]
- ,[ExternalKey]
- ,[CreatePersonId]
- ,[UpdatePersonId]
- ,[CreateDate]
- ,[UpdateDate]
- )
- Select
- 55010 as PersonId
- ,1 as RoleId
- ,0 as GenderId
- ,0 as AddressId
- ,'Kelton' as FirstName
- ,'Matthew' as MiddleName
- ,'Crouse' as LastName
- ,'Kelton.Crouse@gmail.com' as Handle
- ,convert(varchar(32), HashBytes('MD5', 'NaCl_And_Peppa123'), 2) as Password
- ,'System Admin' as Title
- ,'' as Overview
- ,null as BirthDate
- ,'' as Image
- ,0 as ForcePasswordChange
- ,null as EmployeeHireDate
- ,null as EmployeeFireDate
- ,1 as IsInternal
- ,1 as IsActive
- ,1 as IsLoginConfirmed
- ,'COPE-SYSTEM-ADMIN' as ExternalKey
- ,1 as CreatePersonId
- ,0 as UpdatePersonId
- ,GetDate() as CreateDate
- ,null as UpdateDate
- Set IDENTITY_INSERT core.Person Off
- then cleared cache, and attempted to log in....
- LogId MessageTypeId Code Method Message Timestamp
- 31038 1 n/a Person.AuthUserByCredentials kelton.crouse@gmail.com found but the password failed or the user is inactive or the user is not allowed to login. 2017-11-06 15:17:46.860
- That's what returned.
- Here's my payload giving 401 unauthorized:
- {source: 1, handle: "kelton.crouse@gmail.com", password: "123", remember: null}handle:"kelton.crouse@gmail.com"
- password:"123"
- remember:null
- source:1
Add Comment
Please, Sign In to add comment