mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Api quest restrictions - no purchase/start without fulfilling eligibility requirements (#10387)
* removing duplicate translation key * fixing typos * extracting quest prerequisite check. adding check for previous quest completion, if required * fixing (undoing) static change, adding tests * more typos * correcting test failures * honoring quest prerequisites in quest invite API call. updating format of il8n string replacement arg * no longer using apiError, use translate method instead (msg key was not defined) * adding @apiError to docblock as requested in issue * removing checks on quest invite method. small window of opportunity/low risk
This commit is contained in:
committed by
Matteo Pagliazzi
parent
8fb67e7944
commit
ac90a40be5
@@ -35,7 +35,7 @@ export function sha1MakeSalt (len = 10) {
|
||||
}
|
||||
|
||||
// Compare the password for an user
|
||||
// Works with bcrypt and sha1 indipendently
|
||||
// Works with bcrypt and sha1 independently
|
||||
// An async function is used so that a promise is always returned
|
||||
// even for comparing sha1 hashed passwords that use a sync method
|
||||
export async function compare (user, passwordToCheck) {
|
||||
|
||||
Reference in New Issue
Block a user