Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building apps with Rwf guide, request session not optional, better ORM interface, other fixes #53

Merged
merged 10 commits into from
Dec 5, 2024

Conversation

levkk
Copy link
Owner

@levkk levkk commented Dec 4, 2024

Breaking changes

Request::session() now returns the Session instead of Option<Session>. This reinforces the guarantee that all Rwf requests will have a user session, even if the browser doesn't respect cookie settings.

Features

  1. Added hash and hash_validate using Argon2. argon2 crate added as dependency to rwf.
  2. Starting guide on building applications with Rwf.

Other changes

  1. Print a warning if the config file contains errors.
  2. Generalized the connection object passed into ORM methods when executing queries. Allowed options now include the connection pool itself. This allows callers to avoid checking out a connection manually, and prevents common mistakes like checking out multiple connections.
  3. Implemented Option<T: Model> for ToTemplateValue, allowing to pass in optional results from ORM directly into the template.
  4. Allow trailing comma in render! macro when specifying response code.

@levkk levkk changed the title save users Creating users guide Dec 5, 2024
@levkk levkk changed the title Creating users guide Building apps with Rwf guide, request session not optional, better ORM interface, other fixes Dec 5, 2024
@levkk levkk marked this pull request as ready for review December 5, 2024 20:38
@levkk levkk merged commit e535dfd into main Dec 5, 2024
3 checks passed
@levkk levkk deleted the levkk-add-users branch December 5, 2024 20:39
Sign up for free to 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.

1 participant