fix: handle uppercase and missing user verification (#44444)
* fix: hotfix for isHonest null * fix: early return if no user? * fix: handle invalid input on api Also lowerCases the username it receives since the client could send any case. * fix: report errors to user when verification fails Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
committed by
GitHub
parent
fd0a140c8a
commit
42acc542b7
@@ -1,5 +1,6 @@
|
||||
import cookies from 'browser-cookies';
|
||||
import envData from '../../../config/env.json';
|
||||
import { FlashMessageArg } from '../components/Flash/redux';
|
||||
|
||||
import type {
|
||||
ChallengeFile,
|
||||
@@ -172,6 +173,7 @@ export interface GetVerifyCanClaimCert {
|
||||
};
|
||||
isCertMap: ClaimedCertifications;
|
||||
completedChallenges: CompletedChallenge[];
|
||||
message?: FlashMessageArg;
|
||||
}
|
||||
|
||||
export function getVerifyCanClaimCert(
|
||||
|
Reference in New Issue
Block a user