mirror of
https://github.com/fosrl/pangolin.git
synced 2026-07-16 06:08:33 -05:00
[PR #75] [MERGED] fix: add missing await when verifying pincode
#9052
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fosrl/pangolin/pull/75
Author: @mallendeo
Created: 1/18/2025
Status: ✅ Merged
Merged: 1/18/2025
Merged by: @miloschwartz
Base:
main← Head:patch-1📝 Commits (1)
6b141c3fix: add missingawaitwhen verifying pincode📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
server/routers/resource/authWithPincode.ts(+1 -1)📄 Description
Community Contribution License Agreement
By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.
Description
When using a PIN, Pangolin grants access regardless of whether the PIN is correct or not.
This PR fixes that by waiting for the promise (
validPincodeends up as aPromiseand evaluates as a thruthy value wether the pin is correct or not).Closes #74
How to test?
Create a PIN code for a resource, then try any password when accessing it.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.