Skip to content

Commit

Permalink
fix(server/api): use api.findGroupById for password check (#7)
Browse files Browse the repository at this point in the history
Co-authored-by: Max <[email protected]>
  • Loading branch information
MaxReinold and MaxReinold authored Jul 18, 2024
1 parent 3d503db commit 91d57af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ utils.exportHandler('AddMember', api.AddMember)
---@param password string
---@return boolean?
function api.isPasswordCorrect(groupId, password)
local group = groups?[groupId]
local group = api.findGroupById(groupId)

if not group then
return lib.print.error('isPasswordCorrect was sent an invalid groupId :'..groupId)
Expand Down

0 comments on commit 91d57af

Please sign in to comment.