Skip to content

Update/borrow - #261

Merged
ChienNQuang merged 61 commits into
devfrom
update/borrow
Jun 21, 2023
Merged

Update/borrow#261
ChienNQuang merged 61 commits into
devfrom
update/borrow

Conversation

@ChienNQuang

Copy link
Copy Markdown
Member

No description provided.

ChienNQuangand others added 30 commits June 6, 2023 14:51
* test: add integration tests
* fix: some stuff and add an assertion
* test: add integration tests
fix: time
* fix and add stuffs
* cleanup
* add: reset password token entity, configuration, and added to app db context
also renamed the parameter of OnModelCreating in ApplicationDbContext.cs to modelBuilder to satisfy SonarLint
* chore: refactored SendResetPasswordHtmlMail method of IMailService.cs
also:
- Pass a reset password token hash so frontend can call the right link
- Change one template variable name to ResetPasswordTokenHash and send the token along
- Renamed HTMLMailData.cs to HtmlMailData.cs to satisfy sonarlint
* add: IAuthDbContext.cs and registered it
* chore: refactored IdentityService to be using abstractions instead of implementations
* chore: add reset token creation logic to UserCreatedEventHandler.cs
* chore: UserId foreign key naming in configuration
* chore: add migrations for reset password token table
* chore: modified service a little bit
- Changing the way service registrations work so that 2 interfaces share the same instance
- Pass the whole entity to event so that auth db context can get its id
- I forgot the db context model snapshot
* chore: tweaks how tokens are sent
- send the token instead of the hashed version of it
* add: endpoint and service to reset password
* test: add unit test for password hashing
* feat(SecurityUtil.cs): add password hashing implementation
* refactor: add salt and pepper for password hashing
* fix(IdentityService.cs): remove unused dependencies
* update: add audit and private status to document when create new import request
* add: get all issued documents
* add: checkin endpoint
* add: approve and reject endpoint for document
* finish: almost everything
* reason
* rename endpoint
@kaitoz11

Copy link
Copy Markdown
Member

Tests are dead! But we don't give a shit! Let's pray for our life

@ChienNQuang
ChienNQuang merged commit b15d821 into devJun 21, 2023
@ChienNQuang
ChienNQuang deleted the update/borrow branch July 3, 2023 05:06
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@ChienNQuang@kaitoz11@StarryFolf@vzart