Skip to content

Sprint 3: Update alpine version and logout & login return type#77

Open
EleisonC wants to merge 4 commits into
letsgetrusty:sprint-3-final-7-15from
EleisonC:sprint-3-cookie-update
Open

Sprint 3: Update alpine version and logout & login return type#77
EleisonC wants to merge 4 commits into
letsgetrusty:sprint-3-final-7-15from
EleisonC:sprint-3-cookie-update

Conversation

@EleisonC
Copy link
Copy Markdown
Contributor

@EleisonC EleisonC commented May 19, 2026

What does this PR do?
Updates the return types for login and logout route functions addressed in #37

Why the Dockerfile changes?
cargo-chef's dependency cargo-platform@0.3.3 requires rustc 1.91, so the build failed on rust:1.90-alpine. Bumped to 1.91 and added --locked to pin cargo-chef to its lockfile, preventing future dependency resolution surprises.

What are the related ClickUp changes?

@EleisonC EleisonC changed the title update alpine version and logout & login return type Sprint 3: Update alpine version and logout & login return type May 20, 2026
let password = match Password::parse(request.password) {
Ok(password) => password,
Err(_) => return (jar, Err(AuthAPIError::InvalidCredentials)),
Err(_) => return Err(AuthAPIError::InvalidCredentials),
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can now do something like

let password = match Password::parse(request.password).map_err(|_| => AuthAPIError::InvalidCredentials)?;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, looks more idiomatic, thank you for the suggestion.
I will update it to

let password = Password::parse(request.password).map_err(|_| AuthAPIError::InvalidCredentials)?;

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.

2 participants