Initialize the challenge type map before using it
This commit is contained in:
parent
72ed655c0f
commit
587bd8c89a
|
@ -44,6 +44,7 @@ func NewPolicyAuthorityImpl(dbMap *gorp.DbMap, enforceWhitelist bool, challengeT
|
|||
}
|
||||
|
||||
// Take note of which challenges to offer
|
||||
pa.supportedChallenges = map[string]bool{}
|
||||
for _, challengeType := range challengeTypes {
|
||||
pa.supportedChallenges[challengeType] = true
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue